pmndrs / valtio

💊 Valtio makes proxy-state simple for React and Vanilla
http://valtio.pmnd.rs
MIT License
8.7k stars 244 forks source link

is support SSR, react-native ? #475

Closed shifenhutu closed 2 years ago

shifenhutu commented 2 years ago

hi, there

https://github.com/pmndrs/valtio/issues/141#issuecomment-816511885 in there ,@dai-shi says:

Another point is valtio/zustand states become a bit tricky in ssr scenario.

and in readme.md , has no describe , is the project support SSR, react-native ?

can you add describe in readme.md ?

thank you very much

dai-shi commented 2 years ago

It should work with RN without issues. It's not just RN. It works with r3f or any other renderers. SSR is basically fine, but can be tricky with shared module state. Might need to use context depending on requirements. We can just say valtio work on server. What kind of description do you expect? Can provide some examples?

shifenhutu commented 2 years ago

like this https://github.com/TanStack/query#quick-features

a list of quick-features

list all quick-features

eg:

# quick-features
   react 18
   react native
   ssr
   typescirpt