Skip to content

Instantly share code, notes, and snippets.

@ckomop0x
Created June 13, 2019 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckomop0x/eefa63793ecc060f1d5c4f58134e04e6 to your computer and use it in GitHub Desktop.
Save ckomop0x/eefa63793ecc060f1d5c4f58134e04e6 to your computer and use it in GitHub Desktop.
Rewritten App.js
import React from "react";
import ReactDOM from "react-dom";
import { sum } from "./utils";
import "./styles.css";
function App() {
return (
<div className="App">
<h1>Re-export example</h1>
<p>{sum(5, 10)}</p>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment