This reference guide will show you how you can set up Releaseflags with React.js.
Add the file
0-releaseflags-react-sdk.js to your React.js project, for example in
ReleaseflagsProviderin the root of your project
ReleaseflagsProvider in your
App.js as shown in
1-app.js. Set the props
for applicationId, environment and apiKey according to your application's settings.
As you can see I'm using the
isomorphic-fetch dependency in the
releaseflags-react-sdk.js file. You can easily replace it with any fetch polyfill library or use native Fetch.