This example shows how to use GO Feature Flag in your React application using the Openfeature react SDK and the GO Feature Flag web provider.
docker compose up -d
It will start thomaspoignant/go-feature-flag
docker image and build the web application located in the webapp
directory.
When ready, you can access to the application at http://localhost:3000/.
It uses the Openfeature react SDK and the GO Feature Flag web provider.
The configuration of the server is in the goff-proxy.yaml
file, and it loads the flag configuration from the config.goff.yaml
file.
You can look at the file react-app/src/App.tsx
to look how we retrieve the flags, and we change the display of the page.
At any moment during the demo you can edit the config.goff.yaml
file and see how it changes the behaviors of the application.