Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.59 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.59 KB

DevCycle React SDK Example App (TypeScript)

An example app built using the DevCycle React SDK and TypeScript

Creating a Demo Feature

This example app requires that your project has a feature with the expected variables, as well as some simple targeting rules.

Click here to automatically create the feature in your project ⇦

When you run the example app and switch your identity between users, you'll be able to see the feature's different variations.

Running the Example

Setup

  • Run npm install in the project directory to install dependencies
  • Create a .env file and set REACT_APP_DEVCYCLE_CLIENT_SDK_KEY to the SDK Key for your environment.
    You can find this under Settings > Environments on the DevCycle dashboard. Learn more about environments.

Development

npm run start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

Testing

npm run test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

Documentation

For more information about using the DevCycle React SDK, see the documentation