Skip to content

Instantly share code, notes, and snippets.

@marharyta
Last active August 10, 2018 15:31
Show Gist options
  • Save marharyta/b470882ed0b06d8a22a82eb0325715fa to your computer and use it in GitHub Desktop.
Save marharyta/b470882ed0b06d8a22a82eb0325715fa to your computer and use it in GitHub Desktop.
React-redux-search src/ folder
<html>
<head>
<link rel="stylesheet" href="<%=htmlWebpackPlugin.files.chunks.main.css %>">
</head>
<body>
<div id="root"></div>
<script src="<%= htmlWebpackPlugin.files.chunks.main.entry %>"></script>
</body>
</html>
import React from 'react';
import ReactDOM from 'react-dom';
import './css/main.css';
class App extends React.Component {
render() {
return <div> Hello, world! </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