Skip to content

Commit b37837d

Browse files
docs(example): Fixing link in react example (#2756)
* docs(example): Fixing link in react example Signed-off-by: Thomas Poignant <[email protected]> * Refactor example Signed-off-by: Thomas Poignant <[email protected]> * refactor app Signed-off-by: Thomas Poignant <[email protected]> --------- Signed-off-by: Thomas Poignant <[email protected]>
1 parent 76400e7 commit b37837d

13 files changed

+1155
-202
lines changed

examples/openfeature_react/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ When ready, you can access to the application at http://localhost:3000/.
1313
## What this example does?
1414
It uses the Openfeature react SDK and the GO Feature Flag web provider.
1515

16-
The configuration of the server is in the `goff-proxy.yaml` file, and it loads the flag configuration from the `config.goff.yaml` file.
16+
The configuration of the server is in the [`goff-proxy.yaml`](goff-proxy.yaml) file, and it loads the flag configuration from the [`config.goff.yaml`](config.goff.yaml) file.
1717

18-
You can look at the file [`react-app/src/App.tsx`](webapp/src/js/main.js) to look how we retrieve the flags, and we change the display of the page.
18+
You can look at the file [`react-app/src/App.tsx`](react-app/src/App.tsx) to look how we retrieve the flags, and we change the display of the page.
1919

20-
At any moment during the demo you can edit the `config.goff.yaml` file and see how it changes the behaviors of the application.
20+
At any moment during the demo you can edit the [`config.goff.yaml`](config.goff.yaml) file and see how it changes the behaviors of the application.

examples/openfeature_react/config.goff.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
hide-logo:
22
variations:
3-
var_true: true
4-
var_false: false
3+
enabled: true
4+
disabled: false
55
defaultRule:
6-
variation: var_false
6+
variation: disabled
77

88
title-flag:
99
variations:
@@ -13,7 +13,7 @@ title-flag:
1313
- query: userType eq "dev"
1414
variation: developer_title
1515
defaultRule:
16-
variation: default_title
16+
variation: default_title
1717
metadata:
1818
title: "Feature Flag Title"
1919
description: "This flag controls the title of the feature flag"

0 commit comments

Comments
 (0)