This Example Features Ready to use on this NextJS Project.
State with Recoil
This case i make data store state on @/store/CounterStore.js
Then i call that counter on 3 component : @/components/recoil/ TestRecoilShared.js (button counter increment #pagesIndex), CounterData(just call counter data #Other) and SecondPagesRecoilComponents (call counter data #secondPages).
Second Pages: 0