yarn && yarn start
Use the email [email protected]
with any password
- uses TypeScript
- uses
react-router
for page routing - uses
Rebass
as a UI kit to speed up development. However normally I'd use manual styling - uses
styled-components
for more powerful CSS selectors where required - use of React hooks primarily
useState
anduseEffect
- considered
useContext
anduseReducer
to allow state and dispatch tunneling but overkill given the simplicity of the app - structure mimics a more complex app structure for demonstration
/app/types.d.ts
is the TypeScript global declaration file
/app/ui/App.tsx
guards the logged in/out rendering
/app/ui/login/Login.tsx
is the login form
/app/ui/nav/Nav.tsx
is the navigation menu
/app/ui/profile/ProfileForm.tsx
is the Profile form entry point
/app/ui/profile/on-change-create-profile.ts
is a helper that creates a new Profile given a form input event
- more testing of UI components
- use library for form rendering
- minor refactor i.e. constants, break up larger components
- when running on GitHub pages the routing has some minor issues due to the extra base path. Works fine locally so considered out of scope.