6 ms·
We decided on the useReducer-hook instead of using a proper state library. We did this since the thing we are currently building is essentially just a set of f
by sjogress 6y ago
We decided on the useReducer-hook instead of using a proper state library.
We did this since the thing we are currently building is essentially just a set of forms with a lot of client-side and server-side validations.
Of course, if we were building a large SPA we would probably reconcider at this point. It feels like we're already at the edge of what useReducer was designed to do and I do not think what we are doing now would scale cleanly to a larger project or a larger team.