< Previous: Cleaning up Our Routes and Preparing for the Next Step | Next: Making Usernames Clickable: My Solution > |
It's time for another test of your skills to make sure you're paying attention. As before, I'll walk you through a simple solution once you've had a go yourself, and also as before I do strongly recommend you genuinely use this chance to try it yourself so you can identify which areas you understand well and which not so well.
Just to recap, here are all the things you've learned so far:
onClick
.onClick
.<Link>
.<IndexRoute>
.You should be very proud of your progress so far – you've learned a lot! So, it's time to put all your new skills to the test with a task. Your job is to:
Trust me on this: you know everything required to make that happen. It's just a matter of using what you know in different ways, inspecting the JSON from GitHub to select what you want to show, then 10 to 20 minutes of coding depending on how confident you feel.
All set? Go for it!
Still here? Here are some hints:
detail/:repo
route in routes.js for inspiration how to handle any username.<Link>
components to direct users to your new page.Buy the book for $10
Get the complete, unabridged Hacking with React e-book and take your learning to the next level - includes a 45-day no questions asked money back guarantee!
If this was helpful, please take a moment to tell others about Hacking with React by tweeting about it!
< Previous: Cleaning up Our Routes and Preparing for the Next Step | Next: Making Usernames Clickable: My Solution > |
Copyright ©2016 Paul Hudson. Follow me: @twostraws.