DOWINN-INTERN / employee-record-system-frontend

🤖 A simple and responsive application for managing employee records, built with React, TypeScript, and Tailwind CSS. It lets you easily add, view, and update employee information.
MIT License
1 stars 0 forks source link

Branch #12

Open wndrflgrc opened 1 month ago

wndrflgrc commented 1 month ago

This is the Main Component of Branch Page. What I did is called Higher Order Component and the idea behind this is the you have to put all the functions of child component to the Parent. You can do that by creating a prop and calling it to the child component as seen here:

https://github.com/DOWINN-INTERN/employee-record-system-frontend/blob/68684786a2d7d55675903539d4b71f339cd1084c/main/src/pages/Organization/Branch/Branch.tsx#L82-L108

I couldn't do this in every page as it is still in development and just did in on the Branch page to test the waters.