object Builder
- Alphabetic
- By Inheritance
- Builder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Config[P, C <: Children, S, B, US <: UpdateSnapshot, US2 <: UpdateSnapshot] = (Step4[P, C, S, B, US]) => Step4[P, C, S, B, US2]
- type NewBackendFn[P, S, B] = (Scala.BackendScope[P, S]) => B
- type RenderFn[P, S, B] = (RenderScope[P, S, B]) => VdomNode
- final class Step1[P] extends AnyRef
You're on step 1/4 on the way to building a component.
You're on step 1/4 on the way to building a component.
If your component is to be stateful, here you must specify it's initial state.
If your component is to be stateless, you can skip this step or explicitly use
.stateless. - final class Step2[P, S] extends AnyRef
You're on step 2/4 on the way to building a component.
You're on step 2/4 on the way to building a component.
Here you specify whether your component has a "backend" or not. A backend like a class that is created when your component mounts and remains until it is unmounted.
If you don't need a backend, you can skip this step or explicitly use
.noBackend.Making common cases convenient, you can even use
.renderBackendor.renderBackendWithChildrento take care of both this and the following step automatically, using macros to save you typing boring boilerplate. If you have an unhealthy fear of macros you can ignore then and do it all manually too; the macros don't have any special privileges. - final class Step3[P, S, B] extends AnyRef
You're on step 3/4 on the way to building a component.
You're on step 3/4 on the way to building a component.
Here you specify your component's render function. For convenience there are a plethora of methods you can call that all do the same thing but accept the argument in different shapes; the suffixes in method names refer to the argument type(s). This means you choose the method that provides the types that you need, rather than having to manually specify the types for all arguments including stuff you don't need.
If you're using a backend, then it's highly recommended that you put your render function in the backend. When you do that, make sure it's called
.renderand then here in the builder, use the.renderBackendor.renderBackendWithChildrenmethods which will use a macro to inspect your backend's render method and provide everything it needs automatically. - final class Step4[P, C <: Children, S, B, US <: UpdateSnapshot] extends AnyRef
You're on the final step on the way to building a component.
You're on the final step on the way to building a component.
This is where you add lifecycle callbacks if you need to.
When you're done, simply call
.buildto create and return yourScalaComponent.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit def defaultToNoBackend[X, P, S](b: X)(implicit ev: (X) => Step2[P, S]): Step3[P, S, Unit]
- implicit def defaultToNoState[P](b: Step1[P]): Step2[P, Unit]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromReactComponentClass[P, C <: Children, S, B](rc: ComponentClass[Box[P], Box[S]])(implicit ctorType: Summoner[Box[P], C]): Component[P, S, B, CT]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated