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'; | |
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
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' |
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 ReactDOM from 'react-dom'; | |
import BlogPage from './components/BlogPage.jsx'; | |
import HomePage from './components/HomePage.jsx'; | |
import { Router, Route, hashHistory } from 'react-router'; | |
ReactDOM.render( | |
<Router history={hashHistory}> | |
<Route path="/" component={HomePage}/> |
NewerOlder