Below is a clipping of some React. During coffee with a DBC alumni, I noticed his eyes light up when I mentioned React in conversation. Taking note, I looked into it further and thought it might be fun to try it.
So what's happening here?
React is building the start of a table.
Line 1-3 are inializing the class. Think a process similar to the Ruby initialize method. The initialized object has a state, the data from the row in the table of the database. The 'getDefaultProp' puts the data into the clearly marked array. The first few lines of code takes the data and builds objects with them and organized them into an array for easy access (meaning iterating through them).