trait ComponentSyntax extends AnyRef
- Alphabetic
- By Inheritance
- ComponentSyntax
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class RichJSFunction0 extends AnyRef
Convert a plain js function to an element using some syntax.
- implicit class RichScalaFunction[P <: Object] extends AnyRef
Convert standard scala function with 1 props arguments to an element using some syntax.
- implicit class RichScalaJSFunction1 extends AnyRef
Convert a plain js function with 1 props argument to an element using some syntax.
Value Members
- implicit def func2Element[P <: Object](f: (ScalaJSFunctionComponent1, P)): ReactNode
Given a function component and an arg, expressed as tuple, convert to ReactElement.
- implicit def funcChild2Element[P <: Object](f: (ScalaJSFunctionComponent1, P, ReactNode)): ReactNode
Given a function component and an arg with children, expressed as a tuple, convert to ReactElement.
- implicit def sfc02Node(f: Function0[ReactNode]): ReactNode
Slightly evil.
Slightly evil. Auto conversion of no-props function component to
ReactNode
. - implicit def thunkToSFC(f: () => ReactNode): ReactNode
Evil! Auto type conversion from a no-arg function.