DEV Community

Thiago
Thiago

Posted on

material-ui Drawer - findDOMNode is deprecated in StrictMode

Don't need to disable SctrictMode, just do it:

You can change:

import { createMuiTheme } from '@material-ui/core';

TO

import { unstable_createMuiStrictModeTheme as createMuiTheme } from '@material-ui/core';

Top comments (0)