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
var webpack = require('webpack') | |
var path = require('path') | |
var BUILD_DIR = path.resolve(__dirname + '/build') | |
var APP_DIR = path.resolve(__dirname + '/app') | |
var config = { | |
entry: ["babel-polyfill", APP_DIR + '/index.js'] | |
, output: { | |
path: BUILD_DIR |
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, { Component } from 'react'; | |
import { incrementCount, postObject } from '../actions/index'; | |
import { Route, Link } from 'react-router-dom'; | |
import Header from './Header'; | |
import Home from '../containers/Home'; | |
import Footer from './Footer'; | |
import Register from '../containers/Register'; |
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 { Route, Link } from 'react-router-dom'; | |
const Header = ()=>( | |
<nav className="navbar navbar-toggleable-md navbar-inverse fixed-top bg-inverse"> | |
<button className="navbar-toggler navbar-toggler-right" type="button" | |
data-toggle="collapse" data-target="#navbarCollapse" | |
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation"> | |
<span className="navbar-toggler-icon"></span> | |
</button> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<!-- | |
<link rel="icon" href="../../favicon.ico"> | |
--> |
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, { Component } from 'react' | |
import ReactDOM from 'react-dom'; | |
import { BrowserRouter, Route, Link } from 'react-router-dom'; | |
import { Provider } from 'react-redux'; | |
import { createStore, applyMiddleware } from 'redux'; | |
import reducer from './reducers/index'; | |
import createSagaMiddleware from 'redux-saga'; | |
import rootSaga from './sagas' |
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
// autocomplete.js | |
var componentForm = { | |
locality: 'long_name', | |
administrative_area_level_1: 'long_name', | |
country: 'long_name' | |
}; | |
for (var i = 0; i < place.address_components.length; i++) { |
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 {createStore, applyMiddleware} from 'redux' | |
import createSagaMiddleware from 'redux-saga'; | |
import decoristReducers from '../reducers/decorist_reducer' | |
import sagas from '../sagas/sagas'; | |
const sagaMiddleware = createSagaMiddleware(); | |
/** | |
* Add all the state in local storage |
OlderNewer