mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Create slow-paws-beg.md
This commit is contained in:
parent
c0323be283
commit
651a5256b3
35
.changeset/slow-paws-beg.md
Normal file
35
.changeset/slow-paws-beg.md
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
'@redux-devtools/app': major
|
||||||
|
---
|
||||||
|
|
||||||
|
The UMD bundle now exports the same thing as the library and includes the CSS in a sperate file. Therfore, the new usage is:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Redux DevTools</title>
|
||||||
|
+ <link href="/redux-devtools-app.min.css" rel="stylesheet" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script src="/react.production.min.js"></script>
|
||||||
|
<script src="/react-dom.production.min.js"></script>
|
||||||
|
<script src="/redux-devtools-app.min.js"></script>
|
||||||
|
<script src="/port.js"></script>
|
||||||
|
<script>
|
||||||
|
const container = document.querySelector('#root');
|
||||||
|
- const element = React.createElement(ReduxDevToolsApp, {
|
||||||
|
+ const element = React.createElement(ReduxDevToolsApp.Root, {
|
||||||
|
socketOptions: {
|
||||||
|
hostname: location.hostname,
|
||||||
|
port: reduxDevToolsPort,
|
||||||
|
autoReconnect: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
ReactDOM.createRoot(container).render(element);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user