MaterializeCSS + React | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

MaterializeCSS + React

Hello, I'm working on a React app and hoping to use MaterializeCSS for UI stuff. Problem is when I try to add JS components, it's not working. (Other CSS components are working properly.) Can anyone tell me how to add JS components to a React app? Thanks.

7th Jan 2019, 8:05 AM
Chamin Jayasooriya
Chamin Jayasooriya - avatar
3 Answers
+ 1
You need to import js components using "import" statement Suppose if you want to import Jquery simply use import $ from "jquery'
23rd Jan 2019, 5:47 PM
Shakir Dodhiya
Shakir Dodhiya - avatar
0
Shakir Dodhiya Thank you very much. The problem was solved.
27th Jan 2019, 1:58 AM
Chamin Jayasooriya
Chamin Jayasooriya - avatar
27th Jan 2019, 5:09 AM
Shakir Dodhiya
Shakir Dodhiya - avatar