Help with React project
Hi I don't know if anyone could help but I have started a project in react js and next js and I downloaded some apps from exaple Mui and I need icons and buttons from mui but when I downloaded I kept getting like 2 items errors out of 2000 downloaded packages or something like that and I tried to ask chatgpt what to do but chatgpt just keeps repeating itself and telling me to : npm force - or npm audit and I did both two but it doesn't help. I guess there is a problem with my json file but I don't know what it could be and I was wondering if maybe someone here would have an idea?
“My import Button from '@mui/material/Button';” is kind of greyed out
11 Replies
Its grey because its not used
Yes but i have it downloaded and idk why its greyed out when its downloaded :/
You import it but you don't use it
i use it here tho
that is not
<Button> Is a compontent
<button> is a html element
ic so how would i technically use it ? ifi wanted it where
the button is ?
Because while i was watching a video guide the guy just wrote that and it worked for him and i couldnt understand why it wasnt working for me so i assumed that there was issues with my json file
You understand React components*?
if not I'd step back a bit and learn some before jumping into some component lib
React Button component - Material UI
Buttons allow users to take actions, and make choices, with a single tap.
also docs are great
Yeah this is my first time really learning about react im going through the motions from a youtube video and what i assumed it did was that once i had mui downloaded with the buttons etc that it just used it from the library but i guess i was wrong
ill have to look into it more and see if i can solve this issue
thank you for the help tho 😄 ❤️ truely appriciate it
Solved it 😄 ty again