atlassian / react-sweet-state

Shared state management solution for React

Home Page:https://atlassian.github.io/react-sweet-state/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use Container with React hooks style?

tylertran0311 opened this issue · comments

The doc only explain implementing with Component style:
https://atlassian.github.io/react-sweet-state/#/advanced/container

Container is basically a React Context Provider, so there is no hook api for that. It has to be a component wrapping the children that want to have access to its state.