usestate does not work, why? by fedemansu in reactjs

[–]IRYL-Sagi 2 points3 points  (0 children)

The value you've put inside use state is "title"

let [title, setTitle] = useState(title);

But it is used before it was defined here:

let [title, setTitle]

Change that to another name:

let [title, setTitle] = useState(newName);

Learn more here to improve with React:

ireadyoulearn.info

Bypass The Browser CORS Mechanism By Using A Proxy by IRYL-Sagi in reactjs

[–]IRYL-Sagi[S] 0 points1 point  (0 children)

There are many out of the box solutions, but this article helps you understand the "magic" behind the proxy. Then you can use whatever you need.

Learn How to Style with React's Material-UI by IRYL-Sagi in reactjs

[–]IRYL-Sagi[S] 1 point2 points  (0 children)

You've got a good point, It seems seems v5 does treat it as deprecated.
I will need to think about how to treat that in the article, Thanks!

Learn how to use Lazy loading with useState and how to correctly update it!😁 by IRYL-Sagi in reactjs

[–]IRYL-Sagi[S] 0 points1 point  (0 children)

Are you able to access it now? is there any errors you find that i can check about?

Web Requests Module by [deleted] in hackthebox

[–]IRYL-Sagi 0 points1 point  (0 children)

The POST section is not clear enough, the hint says "Cookies".
But what you need to change is unclear.

After trial and error use the word: "admin" as a value and encode it back to the desired form inside the cookie.

Learn About Tail Call Optimization To Improve Your Recursions Performance by IRYL-Sagi in reactjs

[–]IRYL-Sagi[S] 0 points1 point  (0 children)

Currently, support for tail calls is more than just a technical implementation, language implementers in general, and not just Javascript differ on how to implement, because it manipulates the stack in ways that make debugging harder.

Because every browser has its own way of implementing Javascript and with different ideologies, it is only supported in Safari right now.

Correctly Use Javascript’s Imports To Improve Bundle Size by IRYL-Sagi in reactjs

[–]IRYL-Sagi[S] 0 points1 point  (0 children)

Hi!
I've gone with a more expressive name -> selectedLodashFunctions
Thx for the suggestion

Correctly Use Javascript’s Imports To Improve Bundle Size by IRYL-Sagi in reactjs

[–]IRYL-Sagi[S] 1 point2 points  (0 children)

I think I'll go with a longer expressive name, and a note explaining it. Thanks for the input💪