docs: use provided "h" function instead of jsx (#406)
This commit is contained in:
parent
52c8e9873e
commit
de405b421b
@ -24,7 +24,7 @@ import { faHouse } from '@fortawesome/free-solid-svg-icons';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import CMS from '@staticcms/core';
|
||||
|
||||
CMS.registerIcon('house', () => <FontAwesomeIcon icon={faHouse} size="lg" />);
|
||||
CMS.registerIcon('house', () => h(FontAwesomeIcon, {icon=faHouse, size="lg"}));
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
Loading…
x
Reference in New Issue
Block a user