Check out example codes for "using materialize css with react". It will help you in understanding the concepts better.

Code Example 1

//to use materialize css in react js

npm install materialize-css

Code Example 2

import React from 'react';
import M from 'materialize-css';
....
// ref can only be used on class components
class SomeComponent extends Component {
  // get a reference to the element after the component has mounted
  componentDidMount(){
    M.Sidenav.init(this.sidenav);
  }

  render(){
    return (
      <ul className={this.props.classes}
          ref={ (sidenav) => {this.sidenav = sidenav} }
          id={this.props.id}>
        // menuItems
      </ul>
    )
  }
}

Learn ReactJs, React Native from akashmittal.com