-
Notifications
You must be signed in to change notification settings - Fork 0
Design Decisions
Dan edited this page Jan 9, 2020
·
2 revisions
-
Making Modal a modular function that I can import to other components: reason: it's used by at least three different components so it's quite flexible to make it a modular function and import it when necessary. It keeps the code DRY.
-
Make the splash page and home page the same route and use AuthRoute and ProtectedRoute to differentiate them.
-
user lifecycle method componentWillUnmount to clear errors.