I am creating a component named Drawer in my app that imports the react-mdl Drawer component so I tried to do:
import { Drawer as mdlDrawer } from 'react-mdl'
Importing and rendering happened but not properly. I think what happens is the material.js that hooks up drawers couldn't find the element, but that's a guess. What I've done as a work around is named my component Drawer_ and just import Drawer from react-mdl the typical way.
I am creating a component named Drawer in my app that imports the react-mdl Drawer component so I tried to do:
import { Drawer as mdlDrawer } from 'react-mdl'
Importing and rendering happened but not properly. I think what happens is the material.js that hooks up drawers couldn't find the element, but that's a guess. What I've done as a work around is named my component Drawer_ and just import Drawer from react-mdl the typical way.