Skip to content

Commit

Permalink
fix: updated datafile variable in README (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-opti authored Nov 6, 2023
1 parent 380a1d8 commit c4afe04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ _returns_
import { OptimizelyProvider, createInstance } from '@optimizely/react-sdk';

const optimizely = createInstance({
datafile: window.datafile,
datafile: window.optimizelyDatafile,
});
```

Expand Down Expand Up @@ -118,7 +118,7 @@ Synchronous loading is the preferred method to ensure that Optimizely is always
import { OptimizelyProvider, createInstance } from '@optimizely/react-sdk';

const optimizelyClient = createInstance({
datafile: window.datafile,
datafile: window.optimizelyDatafile,
sdkKey: 'your-optimizely-sdk-key', // Optimizely environment key
});

Expand Down Expand Up @@ -179,7 +179,7 @@ import { OptimizelyProvider, createInstance } from '@optimizely/react-sdk';
import { fetchUser } from './user';

const optimizely = createInstance({
datafile: window.datafile,
datafile: window.optimizelyDatafile,
});

const userPromise = fetchUser(); // fetchUser returns a Promise for an object with { id, attributes }
Expand Down Expand Up @@ -457,7 +457,7 @@ To disable sending all events to Optimizely's results backend, use the `logOnlyE
import { createInstance, logOnlyEventDispatcher } from '@optimizely/react-sdk';

const optimizely = createInstance({
datafile: window.datafile,
datafile: window.optimizelyDatafile,
eventDispatcher: logOnlyEventDispatcher,
});
```
Expand Down

0 comments on commit c4afe04

Please sign in to comment.