- React 15.5.4
This project derived from: Laracasts: ["Do You React?"]
// 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: Laracasts: ["Do You React?"]
This project derived from: Programming Challenges: [Fizz Buzz]
This project derived from: Programming Challenges: [Convert to Seconds]
This project derived from: Programming Challenges: [Remove False Values From Array]
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.
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 () { |
... Typed with TypeScript
... With Testing Mock-up
GitHub - Done (for now)
- Filename used: ./src/utilities/functions.ts
Demos and Source Code
CodePen
Gists