File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module React.Basic.Emotion
66 , class IsStyleProperty
77 , prop
88 , element
9+ , elementKeyed
910 , css
1011 , important
1112 , nested
@@ -109,6 +110,17 @@ foreign import element_ ::
109110 { className :: String , css :: Style | props }
110111 JSX
111112
113+ -- | Create a `JSX` node from a `ReactComponent`, by providing the props.
114+ -- |
115+ -- | This function is identical to `React.Basic.element` plus Emotion's
116+ -- | `css` prop.
117+ elementKeyed ::
118+ forall props .
119+ ReactComponent { className :: String | props } ->
120+ { key :: String , className :: String , css :: Style | props } ->
121+ JSX
122+ elementKeyed = runFn2 elementKeyed_
123+
112124foreign import elementKeyed_ ::
113125 forall props .
114126 Fn2
You can’t perform that action at this time.
0 commit comments