Norse Polytheistic Mythology

    @dhmk/atom-react
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.3 • Public • Published

    @dhmk/atom-react

    React bindings for @dhmk/atom

    Install: npm install @dhmk/atom-react

    API

    observer(Component: T): T

    Wraps either React's class component or functional component into observable component. Whenever an atom called inside render function is changed, the component will update.

    <Observer>{() => ...}</Observer>

    Observable component.

    SSR

    enableStaticRendering(enable = true)

    Toggle atom observing.

    isUsingStaticRendering(): boolean

    Check atom observing status.

    Install

    npm i @dhmk/atom-react

    DownloadsWeekly Downloads

    2

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    22.5 kB

    Total Files

    13

    Last publish

    Collaborators

    • dhmk083