Skip to content

Commit 5d5ea5f

Browse files
Update import path for createSharedState in demo app
Replaced the local `createSharedState` import with the one from the `react-shared-states` package to ensure the demo app reflects the library's intended usage. - Simplifies and aligns the demo app with the external library usage.
1 parent 3ad8ffb commit 5d5ea5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import './FakeSharedEmitter';
1111
import {FakeSharedEmitter} from "./FakeSharedEmitter";
1212
import {useEffect, useState} from "react";
13-
import {createSharedState} from "../src/hooks/use-shared-state";
13+
import {createSharedState} from "react-shared-states";
1414

1515
FakeSharedEmitter.intervalDuration = 3000;
1616
window.sharedSubscriptionsApi = sharedSubscriptionsApi;

0 commit comments

Comments
 (0)