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
No description
11 Replies
b1mind
b1mind5w ago
Its grey because its not used
GOT7
GOT75w ago
Yes but i have it downloaded and idk why its greyed out when its downloaded :/
b1mind
b1mind5w ago
You import it but you don't use it
GOT7
GOT75w ago
No description
GOT7
GOT75w ago
i use it here tho
b1mind
b1mind5w ago
that is not <Button> Is a compontent <button> is a html element
GOT7
GOT75w ago
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
b1mind
b1mind5w ago
You understand React components*? if not I'd step back a bit and learn some before jumping into some component lib
b1mind
b1mind5w ago
React Button component - Material UI
Buttons allow users to take actions, and make choices, with a single tap.
b1mind
b1mind5w ago
also docs are great
GOT7
GOT75w ago
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
Want results from more Discord servers?
Add your server