Skip to content

Instantly share code, notes, and snippets.

@ryanjyost
Created January 4, 2020 17:04
Show Gist options
  • Select an option

  • Save ryanjyost/6a7649e49209c1ec1ac5c08dfd3902c8 to your computer and use it in GitHub Desktop.

Select an option

Save ryanjyost/6a7649e49209c1ec1ac5c08dfd3902c8 to your computer and use it in GitHub Desktop.
React routing tutorial - 2
import React from "react";
function App() {
return (
<div style={{ display: "flex", height: "100vh", alignItems: "stretch" }}>
<div style={{ flex: 0.3, backgroundColor: "#f2f2f2" }}>route menu</div>
<div>content</div>
</div>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment