I have a Meteor/React project, using ES6 modules. I\'ve installed materialize-css using npm, but I\'m not sure how to actually use the Materialize classes in my JSX code. Wh
Inorder to address the concern of bundle size, the easiest way to use it is as follows:
M
in your React Component's constructor this.M = window.M
this.M
componentDidMount
lifecycle method.componentWillUnmount
, i use the destroy() method on the instances of initialized Materialize Components.