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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more