Skip to content

Commit d236862

Browse files
committed
update docs
1 parent 016d978 commit d236862

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/sdk/javascript/guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,20 @@ unsubFeature()
142142
For React applications, use the dedicated [`@replanejs/react`](/docs/sdk/react) package which provides optimized hooks and components:
143143

144144
```tsx
145-
import { ReplaneProvider, useConfig } from '@replanejs/react';
145+
import { ReplaneProvider, useConfig } from '@replanejs/react'
146146

147147
function App() {
148148
return (
149149
<ReplaneProvider connection={connection}>
150150
<Dashboard />
151151
</ReplaneProvider>
152-
);
152+
)
153153
}
154154

155155
function Dashboard() {
156-
const darkMode = useConfig<boolean>('feature-dark-mode');
156+
const darkMode = useConfig<boolean>('feature-dark-mode')
157157

158-
return <div className={darkMode ? 'dark' : 'light'}>...</div>;
158+
return <div className={darkMode ? 'dark' : 'light'}>...</div>
159159
}
160160
```
161161

0 commit comments

Comments
 (0)