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 { Router, Link } from "@reach/router" | |
import Loadable from 'react-loadable'; | |
const LoadableAbout = Loadable({ | |
loader: () => import( './components/About' ), | |
loading() { | |
return <h1>Loading split out code...</h1> | |
} | |
}); |
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'; | |
class About extends React.Component { | |
render() { | |
return( | |
<div>This is About Component</div> | |
); | |
} | |
} |
NewerOlder