Matt Zabriskie
Adventures with React Native
There And Back Again
A couple weeks ago I was at a coffee shop waiting for my order and getting my morning dose of Twitter while I waited. As I scrolled through my feed on my iPhone, I noticed several of my friends were posting weird JavaScript behavior using the #wtfjs hashtag. There was some pretty classic JS weirdness like [2, 12].sort()
, and 0.1 + 0.2
(go . . .
Posted in: reactreact-native
React: Validating Children
One of the (many) great things about React is that it offers validation of properties. This greatly aids in enforcing the API of your components. If you have a Quantity
component for example, that takes a numeric value
property which is required, you can use propTypes
to validate that your component received what it expected.
var Quantity . . .
Posted in: react
React: Referencing Dynamic Children
I just started with React and decided that in order to familiarize myself with how things work I would create something useful. Talking with Ryan Florence he suggested making a tabs component. This turned out to be a great project in terms of challenging enough to really dig into React, but not so challenging that I was too focused on . . .
Posted in: react