Udacity React Nanodegree: Project Two

The code is here. When I figure out how to serve it, I will. UPDATE: GitHub Pages!

I just submitted project two, the “Would You Rather” app.

This link to the deployed app almost works: https://mcstrings.github.io/would-you-rather/

Note: The first page you’ll see is a 404 error. Just click on one of the links to get things started. GitHub Pages doesn’t play well with React’s router, apparently, and at the moment I’ve got thangs to do other than putz around with it.

Code is here: https://github.com/mcstrings/would-you-rather

But first … Design

I’m not going to pretend that I planned this out well. Everybody has a plan until they get punched in the face.

Having a global “single source of truth” state is different. When async calls attack.

I decided to use Bootstrap 4, which lead to React-Bootstrap. I chose it because, at the time, I had an upcoming interview and I needed to reacquaint myself with Bootstrap and newly acquaint myself with Bootstrap 4. All of the UI frameworks each have their own flavor, the same way sandwich shops each have their own aroma when you walk in the door.

They’re definitely useful and can make laying out the UI responsively so much easier, even if it requires a lot of googling. Note: React-Bootstrap now supports Bootstrap 4, but I can save you some time by directing you to their migration page.

Continue reading →