turingschool / front-end-curriculum

Turing Front-End Engineering Curriculum
http://frontend.turing.io
109 stars 120 forks source link

Update React Router Lesson: Enhanced Outlet Content and Example Without It #735

Closed niksseif closed 1 year ago

niksseif commented 1 year ago

PR Description:

This pull request updates the React Router lesson by adding more comprehensive information about the Outlet component and introducing an example without using Outlet. The changes aim to provide learners with a deeper understanding of dynamic routing concepts in React Router v6.

Changes Made
Rationale

The additional content and exercises will help students grasp the nuances of dynamic routing and different methods of implementation, ultimately enhancing their proficiency in working with React Router v6.

Additional Notes

Please review the changes made and provide feedback regarding the clarity, coherence, and effectiveness of the new content.

niksseif commented 1 year ago

Initially, I shared the same sentiment, @hfaerber. However, I believe it's valuable to introduce them to the Outlet concept first and then allow them to make a decision based on their preference. Discussing the Outlet during the class is significant, yet it's also beneficial to remind them that alternative methods exist for achieving dynamic routing for their project. By doing so, we encourage them to explore the lesson content and make an informed choice about the approach they'd like to adopt. Starting with the easier approach might inadvertently limit their exploration and decision-making process. However, if you believe that having it before the Outlet section would be more advantageous, I am certainly open to making that change.

nicktu12 commented 1 year ago

Thanks for making these changes Nik!