trait ReactConnector[M <: AnyRef] extends AnyRef
- Self Type
- ReactConnector[M] with Circuit[M]
- Alphabetic
- By Inheritance
- ReactConnector
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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()
- def connect[S <: AnyRef](modelReader: ModelRO[S], key: UndefOr[Any] = js.undefined): ReactConnectProxy[S]
Connects a React component into the Circuit by wrapping it in another component that listens to relevant state changes and updates the wrapped component as needed.
Connects a React component into the Circuit by wrapping it in another component that listens to relevant state changes and updates the wrapped component as needed.
- modelReader
A reader that returns the piece of model we are interested in
- key
Optional parameter specifying a unique React key for this component.
- returns
A ReactConnectProxy
- def connect[S <: AnyRef](zoomFunc: (M) => S)(implicit feq: FastEq[_ >: S]): ReactConnectProxy[S]
Connects a React component into the Circuit by wrapping it in another component that listens to relevant state changes and updates the wrapped component as needed.
Connects a React component into the Circuit by wrapping it in another component that listens to relevant state changes and updates the wrapped component as needed.
- zoomFunc
Function to retrieve relevant piece from the model
- returns
A ReactConnectProxy
- def connect[S <: AnyRef](zoomFunc: (M) => S, key: Any)(implicit feq: FastEq[_ >: S]): ReactConnectProxy[S]
Connects a React component into the Circuit by wrapping it in another component that listens to relevant state changes and updates the wrapped component as needed.
Connects a React component into the Circuit by wrapping it in another component that listens to relevant state changes and updates the wrapped component as needed.
- zoomFunc
Function to retrieve relevant piece from the model
- key
Specifies a unique React key for this component.
- returns
A ReactConnectProxy
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def wrap[S <: AnyRef, C](modelReader: ModelRO[S])(compB: (ModelProxy[S]) => C)(implicit ev: (C) => VdomElement): C
Wraps a React component by providing it an instance of ModelProxy for easy access to the model and dispatcher.
Wraps a React component by providing it an instance of ModelProxy for easy access to the model and dispatcher.
- modelReader
A reader that returns the piece of model we are interested in
- compB
Function that creates the wrapped component
- returns
The component returned by
compB
- def wrap[S <: AnyRef, C](zoomFunc: (M) => S)(compB: (ModelProxy[S]) => C)(implicit ev: (C) => VdomElement, feq: FastEq[_ >: S]): C
Wraps a React component by providing it an instance of ModelProxy for easy access to the model and dispatcher.
Wraps a React component by providing it an instance of ModelProxy for easy access to the model and dispatcher.
- zoomFunc
Function to retrieve relevant piece from the model
- compB
Function that creates the wrapped component
- returns
The component returned by
compB