Closed sigma-andex closed 1 year ago
Add a little el helper function which makes it super easy and compact to use ReactComponents and combine them with the (simplified) html tags:
el
ReactComponent
-- Import the simplified elements import React.Basic.DOM.Simplified.Generated as R -- | ... -- | -- Import your react components, e.g. from NextUI foreign import container :: forall props. ReactComponent { | props } foreign import row :: forall props. ReactComponent { | props } foreign import col :: forall props. ReactComponent { | props } -- | ... -- | -- Build your jsx el container {} $ el row {} $ el col {} $ R.div {} "Some text"
Looks good! Appreciate the doc comments
Add a little
el
helper function which makes it super easy and compact to useReactComponent
s and combine them with the (simplified) html tags: