docs: use latest npm package name (#1443)

Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
Viki 2023-08-07 23:31:42 +08:00 committed by GitHub
parent fbd031818d
commit c5f247e81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,10 +5,10 @@ Use with
- `window.__REDUX_DEVTOOLS_EXTENSION__([options])` - `window.__REDUX_DEVTOOLS_EXTENSION__([options])`
- `window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__([options])()` - `window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__([options])()`
- `window.__REDUX_DEVTOOLS_EXTENSION__.connect([options])` - `window.__REDUX_DEVTOOLS_EXTENSION__.connect([options])`
- `redux-devtools-extension` npm package: - `@redux-devtools/extension` npm package:
```js ```js
import { composeWithDevTools } from 'redux-devtools-extension'; import { composeWithDevTools } from '@redux-devtools/extension';
const composeEnhancers = composeWithDevTools(options); const composeEnhancers = composeWithDevTools(options);
const store = createStore( const store = createStore(