This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import agent from './agent' | |
import {createStore} from 'redux' | |
import {connect, Provider} from 'react-redux' | |
const ACTION_NAMES = { | |
ARTICLES_LOADED: 'ARTICLES_LOADED' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './index.css' | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import sortBy from 'sort-by' | |
let items = [ | |
{id: 1, name: 'tacos', type: 'mexican', price: 6}, | |
{id: 2, name: 'burrito', type: 'mexican', price: 9}, | |
{id: 3, name: 'tostada', type: 'mexican', price: 8}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './index.css' | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import sortBy from 'sort-by' | |
let items = [ | |
{ | |
id: 1, | |
name: 'tacos', | |
type: 'mexican', |