Module: App

Main App Component Handles routing, state management for registered persons, and API communication via Axios.
Source:
Returns:
The main application component with routes
Type
JSX.Element

Methods

(async, inner) addPerson(person)

Add a person to the application state using API service. Delegates business validation (email uniqueness simulation) to the domain service.
Parameters:
Name Type Description
person Object Person object to add
Source:
Throws:
Propagates errors thrown by createUser
Type
Error

(inner) handleUserDeleted(deletedId)

Remove a person from the application state after successful deletion.
Parameters:
Name Type Description
deletedId string | number The ID of the deleted person
Source: