r/javascript • • Dec 05 '24

React v19 has been released

http://npmjs.com/package/react
655 Upvotes

104 comments sorted by

View all comments

421

u/magenta_placenta Dec 05 '24 • Polished Silver Turd

https://github.com/facebook/react/blob/main/CHANGELOG.md

useActionState: is a new hook to order Actions inside of a Transition with access to the state of the action, and the pending state. It accepts a reducer that can call Actions, and the initial state used for first render. It also accepts an optional string that is used if the action is passed to a form action prop to support progressive enhancement in forms.

Imagine you're new to front end development and people are telling you to "check out react, they just put a new version!" How would you even start after reading that?

103

u/Tall-Treacle6642 Dec 05 '24

What a word salad. Why didn’t he just write “UseActionState is a hook in React that allows you to update state based on the result of a form action.” like everyone else says.

0

u/[deleted] Dec 05 '24

[deleted]

13

u/[deleted] Dec 06 '24

It’s better than the opposite. No documentation or sparse documentation. Not sure why people are complaining about react when it has some of the best documentation I have come across, many examples, and it’s kept up to date with their releases

1

u/SwiftOneSpeaks Dec 10 '24

Full credit for the current excellent documentation, but we had years of out of date React documentation too (when hooks were described only in terms of the class based approach they'd replace), so I wouldn't lean too heavily on that "keeping up with releases" until we see if that is true.