import React from 'react'; import ReactDOM from 'react-dom'; import { Switch, Route, BrowserRouter, Link } from 'react-router-dom'; import { BuilderComponent } from '@builder.io/react'; import './index.css'; function App() { return (
MY SITE
Home About Page 1 Page 2 404
} />
); } class CatchallPage extends React.Component { state = { notFound: false }; render() { return !this.state.notFound ? ( { if (!content) { this.setState({ notFound: true }); } }} >
Loading...
) : ( // Your 404 content ); } } const Home = () =>

I am the homepage!

; const About = () =>

I am the about page!

; const NotFound = () =>

No page found for this URL, did you publish it?

; const rootElement = document.getElementById('root'); ReactDOM.render(, rootElement);