Skip to content

Instantly share code, notes, and snippets.

@mbrown3321
Last active October 6, 2020 02:40
Show Gist options
  • Save mbrown3321/462b8ce85ca8d93763a57eccb61aadeb to your computer and use it in GitHub Desktop.
Save mbrown3321/462b8ce85ca8d93763a57eccb61aadeb to your computer and use it in GitHub Desktop.
Components - React Suspense Demo
import React from "react";
const About = () => (
<div>
<h1>About</h1>
</div>
);
export default About;
import React from "react";
const ActiveUsers = () => (
<div>
<h1>Active Users</h1>
</div>
);
export default ActiveUsers;
import React from "react";
const Home = () => (
<div>
<h1>Home</h1>
</div>
);
export default Home;
import React from "react";
const Scores = () => (
<div>
<h1>Scores</h1>
</div>
);
export default Scores;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment