Updated
You can also use react-hooks-functional compoents (useEffect) instead of componentDidMount now.
In this tutorial, you are going to learn how to use Materialize CSS in your React JS project
for install materialize-CSS in react : 03:51
Import materialize 04:25
#Materialize-CSS
https://materializecss.com/getting-st...
#Materialize-CSS Media
https://materializecss.com/media.html
import 'materialize-css/dist/css/materialize.min.css'
import M from 'materialize-css'
ComponentDidMount
componentDidMount(){
document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.slider');
var instances = M.Slider.init(elems, {});
});
}
Watch video How to use Materialize css in your React JS project - 2020 online without registration, duration hours minute second in high quality. This video was added by user TechFun 22 October 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 91,97 once and liked it 10 people.