Last post Sep 01, 2019 10:14 PM by EnenDaveyBoy
Aug 31, 2019 08:23 PM|EnenDaveyBoy|LINK
when i first started looking a managing form handling inparticual they all use useState, and they all used models although fairly simple models.
However going through a hooks tutorial it said useState is better for primitive types, but useReducer is better for objects and arrays.
So i googled useState v useReducer and the articles all say the same thing but i still don't understand why.
using setState I can still use models using dot notatiions so, I am confused to why i shouldn't use useState over useReducer
Any thoughts would be appriciated
Sep 01, 2019 10:14 PM|EnenDaveyBoy|LINK
answered in another post