This file contains hidden or 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
| // Initialization | |
| const webpack = require('webpack'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
| const postcssImport = require('postcss-easy-import'); | |
| const BrowserSyncPlugin = require('browser-sync-webpack-plugin'); | |
| const path = require('path'); | |
| const StyleLintPlugin = require('stylelint-webpack-plugin'); | |
| const APP = path.join(__dirname, 'app'); |
This file contains hidden or 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
| module.exports = { | |
| "parser": "babel-eslint", | |
| "rules": { | |
| "strict": 0 | |
| }, | |
| "env": { | |
| "browser": true, | |
| "es6": true, | |
| "jquery": true | |
| }, |
This file contains hidden or 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 Card from './Card.jsx'; | |
| import { series, singleSeries, cloudSeries } from '../fixtures/charts/series'; | |
| const { | |
| // main component | |
| Chart, | |
| // graphs | |
| Bars, Cloud, Labels, Lines, Pies, RadialLines, Ticks, |
This file contains hidden or 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
| export const singleSeries = [{ | |
| data: [1, 2, 4] | |
| }]; | |
| export const series = [{ | |
| data: [1, 2, 3] | |
| }, { | |
| data: [5, 7, 11] | |
| }, { | |
| data: [13, 17, 19] |
This file contains hidden or 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'; | |
| const Hello = ({ greet, message }) => ( | |
| <h3> | |
| {greet} {message} | |
| </h3> | |
| ); | |
| Hello.propTypes = { | |
| greet: React.PropTypes.string, |
This file contains hidden or 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 Hello from './Hello.jsx'; | |
| export default class World extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| currentGreeting: props.greet, | |
| value: 'ReactSpeed' |
NewerOlder