Install SDK

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.

Requirements

The React SDK requires an ES5-compatible environment, as well as Promise. To run in environments that don't support promise, you can use promise-polyfill.


Did this page help you?