Install the React SDK
Steps to install the Optimizely Feature Experimentation React SDK into your application.
The React SDK is distributed through npm. Add it to your package with NPM:
npm install --save @optimizely/react-sdkor with Yarn:
yarn add @optimizely/react-sdkThe full source code is at https://github.com/optimizely/react-sdk.
Requirements
| Requirement | Version |
|---|---|
| React | >= 16.8.0 |
| Node.js | >= 18.0.0 |
| Module format | ESM only |
The React SDK v4 is distributed as ESM only. If your project uses CommonJS (require()), you need to switch to ESM imports or configure your bundler to handle ESM dependencies.
Updated 24 days ago
