The React SDK can be used in both ReactJS and React Native environments, and is distributed through npm. Add it to your package with NPM:
npm install --save @optimizely/react-sdk
or with Yarn:
yarn add @optimizely/react-sdk
The full source code is at https://github.com/optimizely/react-sdk.
The React SDK requires an ES5-compatible environment, as well as
Promise. To run in environments that do not support promises, you can use promise-polyfill.
Updated 4 months ago