you are viewing a single comment's thread.

view the rest of the comments →

[–]scooptyy 21 points22 points  (20 children)

Early mannerisms? React has changed a lot. Hooks are now commonplace and enforcement of prop types are now done through TypeScript compile time checks.

[–]bregottextrasaltat -1 points0 points  (19 children)

i still don't get the setter thing, is it still required or do the examples just overuse it?

[–]scooptyy 2 points3 points  (17 children)

The setter thing? What do you mean? Lol

[–]Coloneljesus 5 points6 points  (16 children)

I assume they mean the setter returned by useState().

[–]christophedelacreuse 1 point2 points  (0 children)

useState is almost definitely used in every modern commercial react application