jotai is a handy library that works very similarly to reagent https://www.npmjs.com/package/jotai
Jotai is great and also https://github.com/pmndrs/zustand from the same developer https://jotai.org/docs/basics/comparison#how-is-jotai-different-from-zustand
can confirm, i’ve been using Jotai in a few places and it’s good & has a great react integration
well, at least I'm getting the same error locally
with a normal project
got it working now with a normal project
jotai/Provider only provides context to discrete child components not the component itself
so you need to add a bit of extra nesting
the issue was probably that jotai only works with a specific react version (17 or so)
but i think in your example you might not even need the provider?
I don't know what provider was for, just trying to make stuff work by imitating an example
the idea with the provider is that you don’t use global state but instead isolate state to a react tree (helps with server side rendering etc)
cool. here's the fully working example: https://github.com/squint-cljs/squint/tree/main/examples/jotai