This project was bootstrapped with Create React App.
A simple expense tracker project to demonstrate all the fundamental concpet behind ReactJS
App,js
|
|
---------------------------------
| |
| |
NewExpense ExpenseWrapper
| |
| |
ExpenseForm ---------------------------------
| | |
| | |
ExpenseFilter ExpenseChart ExpenseList
| |
| |
ExpenseChartBar ExpenseItem
|
|
ExpenseDate
ExpenseForm
-> 2 way-binding (between HTML form and React component state) usinguseState
hook- Refer to
App.js -> Expense*.js
to see howlifting the state up
to allow the communication between new data generated inExpenseForm
andExpenseList
setState
will re-render the component by calling the component function again, returning the new JSX with updated state.
If parent component is re-rendered, all child components also get re-render- Dynamic styling using
dynamic classes and style
List / Conditional Rendering
Event Handling
- Use
CSS Module
to scope CSS to its component