React 19's form actions let you pass a function, possibly asynchronous, to the action prop of a <form>. React calls the function with the FormData on submit and manages the transition state. This simplifies submission without writing a manual onSubmit handler.
Example
<form action={async (formData) => { await creer(formData.get('nom')); }}>
<input name="nom" />
</form>