Elmish.React.Import
- Package
- purescript-elmish
- Repository
- collegevine/purescript-elmish
#CommonProps Source
type CommonProps = (key :: String)
Row of props that are common to all React components, without having to declare them.
#EmptyProps Source
type EmptyProps (r :: Row Type) = r
And empty open row. To be used for components that don't have any optional or any required props.
#ImportedReactComponentConstructor' Source
type ImportedReactComponentConstructor' reqProps optProps result = forall props. IsSubsetOf props (reqProps + optProps + CommonProps) => IsSubsetOf (reqProps ()) props => ValidReactProps (Record props) => Record props -> result
Type of a function used to create a React JSX-imported component that is generic in such a way as to allow any subset of optional properties (including an empty subset) to be passed in.
#ImportedReactComponentConstructor Source
type ImportedReactComponentConstructor reqProps optProps = ImportedReactComponentConstructor' reqProps optProps ReactElement
Type of a function used to create a React JSX-imported component that doesn't admit children. The function is generic in such a way as to allow any subset of optional properties (including an empty subset) to be passed in.
#ImportedReactComponentConstructorWithContent Source
type ImportedReactComponentConstructorWithContent reqProps optProps = forall content. ReactChildren content => ImportedReactComponentConstructor' reqProps optProps (content -> ReactElement)
Type of a function used to create a React JSX-imported component that can
include children. The function is generic in such a way as to allow any
subset of optional properties (including an empty subset) to be passed in.
The children are polymorphic, expressed via the ReactChildren
type class.
#ImportedReactComponent Source
type ImportedReactComponent = forall r. ReactComponent r
A React component directly imported from JavaScript.
#IsSubsetOf Source
class IsSubsetOf (subset :: Row Type) (superset :: Row Type)
Instances
(Union subset r superset) => IsSubsetOf subset superset