docs: use provided "h" function instead of jsx (#406)

This commit is contained in:
Skrubbadubba 2023-01-22 23:17:46 +01:00 committed by GitHub
parent 52c8e9873e
commit de405b421b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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