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, compose } from "redux"; | |
import thunkMiddleware from "redux-thunk"; | |
const configureStore = (initialState) => | |
createStore( | |
// here reducers | |
// REDUCERS.js | |
persistedState, | |
compose( | |
applyMiddleware( |
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' | |
// simple stateless component (children is reserved word) | |
const DisplayHelloWorld = (props) => ( | |
<div> | |
message: {props.children} | |
name: {props.name} | |
</div> | |
) |
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 { withWeb3 } from './../Web3Provider' | |
import { BlockCard } from './../BlockCard/BlockCard' | |
import { CardsContainer } from './primitives' | |
import ContentLoader from 'react-content-loader' | |
const Loader = props => ( | |
<ContentLoader | |
height={97} |
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 styled from 'styled-components' | |
import Logo from './../bigLogo.svg' | |
import { media } from './../media' | |
const theme = { | |
backgroundColor: { | |
primary: '#f8f4eb' | |
}, | |
textColor: { |
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
const Moment = require('moment') | |
const MomentRange = require('moment-range') | |
const moment = MomentRange.extendMoment(Moment); | |
const fetch = require('node-fetch') | |
const getItems = () => { | |
return fetch(MY_API_LINK, { | |
method: 'post', | |
headers: { | |
'Content-Type': 'application/json', |
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'; | |
export default function asyncComponent(importComponent) { | |
class AsyncComponent extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
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
let mix = require('laravel-mix'); | |
var Visualizer = require('webpack-visualizer-plugin'); | |
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps |
NewerOlder