package react

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package component
  2. package feature
  3. package hooks
  4. package internal
  5. package vdom

Type Members

  1. sealed trait Children extends AnyRef

    Describes how a component uses .props.children.

  2. sealed trait ComponentDom extends AnyRef
  3. sealed abstract class CtorType[-P, +U] extends AnyRef
  4. final class ModStateFn[F[_], A[_], S] extends AbstractFunction2[(S) => Option[S], F[Unit], F[Unit]] with ModState[F, A, S]
  5. final class ModStateWithPropsFn[F[_], A[_], P, S] extends AbstractFunction2[(S, P) => Option[S], F[Unit], F[Unit]] with ModStateWithProps[F, A, P, S]
  6. final class PropsChildren extends AnyVal
  7. final case class ReactCaughtError(rawError: Any, rawInfo: ErrorInfo) extends Product with Serializable

    The data captured by React when it catches an error for the componentDidCatch event.

    The data captured by React when it catches an error for the componentDidCatch event.

    rawError

    The JS error. Usually a js.Error. If you threw an error using throw js.JavaScriptException("OMG") then is value is just the argument "OMG".

    Since

    1.6.0

  8. trait ReactEventTypes extends AnyRef
  9. final class ReactExt_DomEvent[F[_]] extends AnyRef
  10. final class ReactExt_ReactEvent[F[_], E <: SyntheticEvent[Node]] extends AnyRef
  11. final class ReactExt_ReactKeyboardEvent[N <: Node] extends AnyVal
  12. trait ReactExtensions extends AnyRef
  13. final class Reusability[A] extends AnyVal

    Tests whether one instance can be used in place of another.

    Tests whether one instance can be used in place of another. Used mostly to compare properties and state of a component to avoid unnecessary updates.

    If you imagine a class with 8 fields, equality would compare all 8 fields where as this would typically just compare the ID field, the update-date, or the revision number. You might think of this as a very quick version of equality.

    Don't miss Reusability.shouldComponentUpdate which can be applied to a component via ScalaComponent.build#configure.

    Since

    0.9.0

  14. trait ReusabilityMacros extends AnyRef
  15. final class Reusable[+A] extends AnyRef

    A value that has been explicitly paired with a (potentially ad-hoc) Reusability instance.

    A value that has been explicitly paired with a (potentially ad-hoc) Reusability instance.

    A

    The type of value.

    Since

    1.0.0

  16. trait ScalaVersionSpecificReusability extends AnyRef

    Reusability specific to Scala 2.13

  17. final class SetStateFn[F[_], A[_], S] extends AbstractFunction2[Option[S], F[Unit], F[Unit]] with SetState[F, A, S]
  18. trait StateAccess[F[_], A[_], S] extends Write[F, A, S]

    Base class for something that has read/write state access (under the same effect type).

    Base class for something that has read/write state access (under the same effect type).

    Passing this around (top-level) is fine but do not use it in a generic/library/helper method. In intermediary positions, use StateAccessor instead.

    F

    The type of effect when accessing state.

    S

    State type.

  19. trait StateAccessorImplicits extends StateAccessorImplicits1
  20. trait StateAccessorImplicits1 extends StateAccessorImplicits2
  21. trait StateAccessorImplicits2 extends AnyRef
  22. sealed trait UpdateSnapshot extends AnyRef

Value Members

  1. object Children
  2. object ComponentDom
  3. object CtorType
  4. object ModStateFn
  5. object ModStateWithPropsFn
  6. object NonEmptyRef

    Types:

    Types:

    • Handle - raw: facade.React.RefHandle[A]
    • Get - get: F[A]
    • Set - set: A => F[Unit]
    • Full - Handle & Set & Get
    • Simple - Monomorphic version of Full
  7. object PropsChildren
  8. object React
  9. object ReactDOM
  10. object ReactDOMServer
  11. object ReactExtensions
  12. object ReactMouseEvent
  13. object Ref

    Types:

    Types:

    • Handle - raw: facade.React.RefHandle[A | Null]
    • Get - get: F[Option[A]]
    • Set - set: Option[A] => F[Unit]
    • Full - Handle & Set & Get
    • Simple - Monomorphic version of Full
  14. object Reusability extends ReusabilityMacros with ScalaVersionSpecificReusability
  15. object Reusable
  16. object ScalaComponent
  17. object ScalaJsReactConfig
  18. object SetStateFn
  19. object StateAccess
  20. object StateAccessor extends StateAccessorImplicits

    Type-classes that provide read and/or write access to state.

    Type-classes that provide read and/or write access to state.

    The syntax is a little wonky for technical reasons. For read access, it's typeclass.state(i): F[S]. For write access, it's typeclass(i).setState(...): F[Unit].

  21. object UpdateSnapshot

Ungrouped