Getting ReactJS components to work and refactoring. Out of order.