Skip to content

Instantly share code, notes, and snippets.

@omar331
Created April 2, 2020 17:42
Show Gist options
  • Save omar331/b135bf02f7c5ddfd3b2176a65f474f41 to your computer and use it in GitHub Desktop.
Save omar331/b135bf02f7c5ddfd3b2176a65f474f41 to your computer and use it in GitHub Desktop.
Minha app sensacional
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
</head>
<!--
Dumber Gist uses dumber bundler, the default bundle file
is /dist/entry-bundle.js.
The starting module is pointed to "index" (data-main attribute on script)
which is your src/index.jsx.
-->
<body>
<div id="root"></div>
<script src="/dist/entry-bundle.js" data-main="index"></script>
</body>
</html>
{
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-bootstrap": "^1.0.0"
}
}
import React from "react";
import { Component } from "react";
import { Row } from "react-bootstrap"
export default function App() {
return (
<Row>
<h1>Hello React!</h1>
</Row>
);
}
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
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