diff --git a/apps/website/docs/react/guides/limitations.md b/apps/website/docs/react/guides/limitations.md index 9860ea23d..46ebea7eb 100644 --- a/apps/website/docs/react/guides/limitations.md +++ b/apps/website/docs/react/guides/limitations.md @@ -10,10 +10,12 @@ Styles can't be created at runtime which includes dynamic selectors as well. ```jsx function App(props) { - // ❌ This will not work and throw an expection + // ❌ This will not work and throw an exception const useClasses = makeStyles({ - color: props.color, - [`.${props.area}`]: { display: 'block' }, + root: { + color: props.color, + [`.${props.area}`]: { display: 'block' }, + } }); } ``` @@ -26,9 +28,9 @@ As Griffel performs ahead-of-time [compilation](/react/ahead-of-time-compilation ```jsx const useClasses = makeStyles({ - twoColumns: {}, - threeColumns: {}, - fourColumns: {}, + twoColumns: { /* styles */ }, + threeColumns: { /* styles */ }, + fourColumns: { /* styles */ }, }); function App(props) { @@ -47,12 +49,12 @@ As Griffel performs ahead-of-time [compilation](/react/ahead-of-time-compilation ```jsx const useClasses = makeStyles({ - /* your styles */ + root: { /* your other styles styles */ }, }); function App(props) { const classes = useClasses(); - return
; + return
; } ```