harblaith7/react-redux-crash-course

amount doesn't change on this change

harishjartarghar opened this issue · 1 comments

react-dom.development.js:86 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

following the doc to remove warning

const container =document.getElementById('root');

// Create a root.
const root = ReactDOMClient.createRoot(container);

root.render(
<React.StrictMode>



</React.StrictMode>
);

AMOUNT DOESN'T UPDATE NOW. ON CLOSE OBSERVING AND USING REDUX LOGGER THE STATE IS CHANGED BUT THE COMPONENT IS NOT RE RENDERED.

Did you try to just use the version in the tutorial? You'll find it inside the package.json