Skip to content

Instantly share code, notes, and snippets.

export const AddItem = (item) => ({
type: "ADD_ITEM",
item: item
})
export const DeleteItem = (id) => ({
type: "DELETE_ITEM",
itemId: id
})
@Gethyl
Gethyl / AddTodo.jsx
Last active December 20, 2016 06:14
AddTodo component from IsomorphicReactReduxToDoList
import React from "react";
import ReactDOM from "react-dom";
import Redux from "redux";
import { connect} from "react-redux";
import {AddItem} from "../../Actions/ToDoActions";
import Grid from 'react-bootstrap/lib/Grid';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
@Gethyl
Gethyl / routes.js
Created December 20, 2016 05:45
route.js from IsomorphicReactRedux
import React from "react";
import { Route, IndexRoute} from "react-router";
import Layout from "./components/Layout";
import Index from "./components/Index";
import Help from "./components/Help/Help";
import NotFoundPage from "./components/NotFoundPage";
const routes = (
@Gethyl
Gethyl / package.json
Created December 20, 2016 03:41
IsomorphicReactReduxTodo
{
"name": "isomorphictodolist",
"version": "1.0.0",
"description": "Creating an isomorphic todolist using react-redux and express",
"main": "index.js",
"dependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.14.0",
"babel-loader": "^6.2.5",
"babel-plugin-react-html-attrs": "^2.0.0",