npm install
npm run dev
npm run build
- Load the project
npm run dev
- Type something into the input box
- Inspect console log
Both App and Test components re-rendered, as "Test Updated!" & "App Updated!" are printed out.
However, if go to src/App.tsx and comment out line 20, only App component is updated (only "Wrapper Updated!" is printed), which is expected.
"Test Updated!" should never be printed in console log in either case