c0d3ster / DakDoug

Personal Website
https://dakdoug.com
0 stars 0 forks source link

Move Header out of SectionContainer #2

Open c0d3ster opened 6 years ago

c0d3ster commented 6 years ago

The Header component is rendered 4 different times, one for each Section. It would be more efficient to render it once as a sticky element instead. Each Section will just need a listener to change the header content when it passes. This would also remove the duplication of navList being passed down to each SectionContainer as props. This method would also allow for clean transitions on the header between sections.