1 of 17

Component Hierarchy &

Passing Props

React Week 06

2 of 17

Schedule

01

03

02

05

04

06

Recap

Break

Component Hierarchy

Styling Components

Passing Props

Questions!

25 min

20 min

25 min

20 min

10 min

10 min

3 of 17

Previously on ReDi React

4 of 17

Rendering Lists

5 of 17

Handling Events

6 of 17

Component Hierarchy

7 of 17

Thinking in React

  1. Start with a mock (or sketch)
  2. Break The UI Into A Component Hierarchy
  3. Build A Static Version in React
  4. Identify The Minimal (but complete) Representation Of UI State
  5. Identify Where Your State Should Live
  6. Add Inverse Data Flow

8 of 17

Start With a Mockup

9 of 17

Break The UI Into A Component Hierarchy

Tweet

Avatar

Author

Time

Message

ReplyButton

LikeButton

RetweetButton

MoreOptionsButton

10 of 17

Live Coding!

11 of 17

Break!

12 of 17

Passing Props

13 of 17

How do we pass props?

14 of 17

Live Coding!

15 of 17

Questions?

16 of 17

Resources

DOCS & WALKTHROUGHS

FURTHER READING / STRETCH

EXERCISES

17 of 17

Thank You!