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, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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 Slide = ({ image }) => { | |
const styles = { | |
backgroundImage: `url(${image})`, | |
backgroundSize: 'cover', | |
backgroundRepeat: 'no-repeat', | |
backgroundPosition: '50% 60%' | |
} | |
return <div className="slide" style={styles}></div> |
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, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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
currencies: [ | |
{ | |
currencyName: 'Bitcoin', | |
marketCap: 106330074359 | |
}, | |
{ | |
currencyName: 'Ethereum', | |
marketCap: 32402945322 | |
}, | |
{ |
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
{markdownRemark.fields.slug && ( | |
<div css={{marginTop: 80}}> | |
<a | |
css={sharedStyles.articleLayout.editLink} | |
href={`https://github.com/reactjs/reactjs.org/tree/master/content/${ | |
markdownRemark.fields.slug.replace('.html', '.md') | |
}`}> | |
Edit this page | |
</a> | |
</div> |
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, { Component } from 'react' | |
import Header from '~/components/header' | |
import Footer from '~/components/footer' | |
import Login from './login' | |
import Portfolio from '~/components/portfolio' | |
import { Switch, Route, Redirect } from 'react-router-dom' | |
import { ROOT_APP_URL } from '~/constants' |
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
function someCoolPromise() { | |
return new Promise((resolve, reject) => { | |
// You can do anything you want in here for as long as you want. | |
// Then just call the resolve function when you are ready. | |
for(let i = 0;i < 10000; i++) { | |
// weeeee | |
} | |
resolve({ |