- React 15.5.4
- Vanilla JavaScript
This project derived from: Programming Challenges: [Fizz Buzz]
| // The following code was extracted from the Redux docs and streamlined into one file | |
| // I only did this to get a simplistic skeleton, so I could see how they all fit together | |
| // ...and just to see that they all could work from one file :) | |
| // http://redux.js.org/docs/basics/ExampleTodoList.html | |
| // [npm: v3.6.0, changelog: #187] | |
| // // // // // // // // // // | |
| // Entry Point | |
| // // // // // // // // // // |
This project derived from: Programming Challenges: [Fizz Buzz]
This project derived from: Programming Challenges: [Convert to Seconds]
This project derived from: Laracasts: ["Do You React?"]
This project derived from: Programming Challenges: [Remove False Values From Array]
| import React, { Component } from 'react' | |
| import PropTypes from 'prop-types' | |
| // mock/pretend API | |
| let dogs = [ | |
| { id: '1', name: 'Castor', favoriteToy: 'bone' }, | |
| { id: '2', name: 'Gandalf', favoriteToy: 'Stick' } | |
| ] | |
| const API = { | |
| getDogs () { |
A Small Personal Boilerplate
Sample code within based on Redux Docs
The two sample components and the initial-state object used herein are only inlined for brevity. CSS is not used/included in this boilerplate.
Demos and Source Code
CodePen
Gists
Demos and Source Code
CodePen
Gists