As a developer, I want my code to be well structured to ensure readability, maintainability, and scalability. This makes it easier for other developers to understand and contribute to the project, reduces the likelihood of introducing bugs, and allows for the efficient addition of new features in the future.
Description
The state management in the event form should be moved in a single state, managed by a reducer and dispatcher function
Acceptance criteria
[ ] The state management in the event form is moved in a single state, managed by a reducer and dispatcher function.
Tasks
[ ] create a branch
useEventForm.js
[ ] create an initial object with a key for every state and its default values
[ ] write a reducer function handling the action types (switch, case...) and returning the new state
[ ] write a dispatcher function spreading the event form states and the reducer return into a new state object and set is s the new state.
Value proposition
As a developer, I want my code to be well structured to ensure readability, maintainability, and scalability. This makes it easier for other developers to understand and contribute to the project, reduces the likelihood of introducing bugs, and allows for the efficient addition of new features in the future.
Description
The state management in the event form should be moved in a single state, managed by a reducer and dispatcher function
Acceptance criteria
Tasks