Prerequisites
Before installing Compound React, make sure you have:- Node.js (v18 or later)
- npm or yarn
- A React project (v16.8.0 or later)
Installing the Package
You can install Compound React using npm or yarn:Peer Dependencies
Compound React has the following peer dependencies:react(>=16.8.0)react-dom(>=16.8.0)
Setting Up the Provider
To use the hooks provided by Compound React, you need to wrap your application with theCompoundProvider component:
CompoundProvider accepts the following props: