Skip to content

dhmk083/dhmk-atom-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published