2
0 Comments

The State of RecoilJS

The core concept of Recoil is the data-flow where data travels from Atoms (shared state) through Selectors (pure functions) down into React components building your app.

React Components can subscribe to these atoms. The subscription can be used to get and set data from Atoms. Recoil works and thinks just like React providing a fast & flexible shared state.

Advantages:

  • Easy to set up and use
  • Supports asynchronous state management
  • State persistence
  • boilerplate-free API where the shared state has the same simple get/set interface as React local state;
  • Compatibility with Concurrent Mode and other new React features as they become available;
  • Code-splitting possibility thanks to incremental & distributed state definition,
  • The state can be replaced without modifying the components that use it.
  • Derived data can move between being synchronous and asynchronous without modifying the components that use it.
  • Backward-compatibility of application state; persisted states can survive application changes.

RecoilJS uses the Context API internally and it solves the problem of efficient render with shared state across components.

Recoil is built on React primitives, the benefits are clear: Cleaner and more compatible. It is like having useState on steroids. Recoil feels like its part of the React core facilitating the use of state or shared state in your components with less context boilerplate.

Learn more about Recoil:

What is UpStamps?

UpStamps is a Feature Flag Management Platform to separate code from different environments and projects.

UpStamps helps teams manage their projects using feature management with a Central control to progressively deliver features to users with confidence.

Sign Up for Free

🛳 Ship when you're ready
🚀 Accelerate feature release
🙈 Hide unfinished features

UpStamps Control Center

Useful links about UpStamps:

posted to Icon for group Developers
Developers
on May 18, 2020
Trending on Indie Hackers
Your AI Product Is Not A Real Business User Avatar 114 comments Stop Building Features: Why 80% of Your Roadmap is a Waste of Time User Avatar 60 comments I built an enterprise AI chatbot platform solo — 6 microservices, 7 channels, and Claude Code as my co-developer User Avatar 38 comments The Clarity Trap: Why “Pretty” Pages Kill Profits (And What To Do Instead) User Avatar 34 comments I got let go, spent 18 months building a productivity app, and now I'm taking it to Kickstarter User Avatar 22 comments I went from 40 support tickets/month to 8 — by stopping the question before it was asked User Avatar 17 comments