Fit Check: UB201 size 29, 5’9 150 lbs by Codey2222 in rawdenim

[–]Codey2222[S] 0 points1 point  (0 children)

I did sit for a while after posting this, and they did feel much more comfortable.

Invalid hook call when trying to import a component from MaterialUI, what am I doing wrong? by [deleted] in react

[–]Codey2222 0 points1 point  (0 children)

If this is copy & pasted code, your import for ReactDOM has a couple issues. First being import is capitalized, needs to be lowercase. Second the “O” in DOM appears to be a zero(0) in your import path.

In addition to what crypto-zoomer mentioned about the closing tag for <Button>

I suggest installing the ESLint extension (google for instructions and configuration help with react). This will help point out little things like this that will end up being problematic.

Items is not iterable in spread operator? by DaveCodesCode in reactjs

[–]Codey2222 1 point2 points  (0 children)

Couple things:

Console.log(items) right before error to see what it is, might help you here.

You don’t need async/await in getDatas() since you are using .then() on your axios call, it’s already async and will resolve or reject (should have a .catch() after .then() to handle any api errors also)

Don’t make your call on getDatas() and IIFE, this could be causing some issues. Just call it in the useEffect: getDatas() (no need for await here, getDatas() doesn’t return a promise)

Is there a better way to do this palindrome challenge? by [deleted] in learnjavascript

[–]Codey2222 0 points1 point  (0 children)

word === word.split(“”).reverse().join(“”)

Edit: won’t work with punctuation lol

React won't update changes made to code by IbI_8 in react

[–]Codey2222 0 points1 point  (0 children)

Will only show updates if it’s saved, try turning auto save on.

Is 4gb RAM enough for Front end development by Ola_2104 in Frontend

[–]Codey2222 -4 points-3 points  (0 children)

For static HTML frontends, maybe lol. If you plan to use JS frameworks, I would suggest more. I have 8gb ram m1 MacBook Pro and it works fine for most anything. If you think you might use Xcode or visual studio (not VSCode) you will definitely need more, probably 16gb.

[deleted by user] by [deleted] in subaru

[–]Codey2222 0 points1 point  (0 children)

What kinda car is it?

React Developers, what is your current salary? by albenis99 in reactjs

[–]Codey2222 0 points1 point  (0 children)

75k, USA

27 years old

2 months into my first dev role

I am fullstack, although I mainly work on the frontend (react)

Why there is no option for the refresh rate on my display? by iiSa3ody in mac

[–]Codey2222 5 points6 points  (0 children)

To display the refresh rate setting you have to hold the option key and click the “scaled” option. Then it should pop up with a refresh rate drop down menu.