I Made My First Thing With React!

jackharner

Jack Harner 🚀

Posted on November 9, 2018

I Made My First Thing With React!

I know it's not much, but I made a clock in React. Check it out: React Clock on CodePen. React has been one of those things on my list of "Should probably figure out, but haven't yet" for a while now. I figured I'd just dive in and see what I could make.

React Clock

The biggest thing that I keep messing up with is using className instead of class

Things Learned

  • Components
  • Using/Updating State
  • Props to pass info to components.

Questions

  • getTime = () => {} I beleive this is called an arrow function, right? What is the point of it and how is it supposed to be used?
  • For this clock example, within React, what would be the best way to store a users preference for 12 vs 24 hour time? I assume just storing the preference in a cookie? Is there an easy "React-ful" way to do this?
💖 💪 🙅 🚩
jackharner
Jack Harner 🚀

Posted on November 9, 2018

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

I Made My First Thing With React!
react I Made My First Thing With React!

November 9, 2018