Packages

t

react

ComponentSyntax

trait ComponentSyntax extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComponentSyntax
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class RichJSFunction0 extends AnyRef

    Convert a plain js function to an element using some syntax.

  2. implicit class RichScalaFunction[P <: Object] extends AnyRef

    Convert standard scala function with 1 props arguments to an element using some syntax.

  3. implicit class RichScalaJSFunction1 extends AnyRef

    Convert a plain js function with 1 props argument to an element using some syntax.

Value Members

  1. implicit def func2Element[P <: Object](f: (ScalaJSFunctionComponent1, P)): ReactNode

    Given a function component and an arg, expressed as tuple, convert to ReactElement.

  2. 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.

  3. implicit def sfc02Node(f: Function0[ReactNode]): ReactNode

    Slightly evil.

    Slightly evil. Auto conversion of no-props function component to ReactNode.

  4. implicit def thunkToSFC(f: () => ReactNode): ReactNode

    Evil! Auto type conversion from a no-arg function.