adds Redux and changes to index.jsx page

This commit is contained in:
Toni Dezman 2017-07-28 10:52:25 +02:00
parent 1673d43993
commit ffda8b259b
3 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,6 @@ const Settings = () => (
document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(
<Settings />,
document.body.appendChild(document.createElement('div'))
document.getElementById('root')
)
})

View file

@ -12,6 +12,9 @@
<%= favicon_link_tag "favicon-48.png", type: "image/png", size: "48x48" %>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<%= javascript_pack_tag 'settings/index' %>
</body>

View file

@ -52,6 +52,7 @@
"rails-erb-loader": "^5.0.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-redux": "^5.0.5",
"resolve-url-loader": "^2.1.0",
"sass-loader": "^6.0.6",
"style-loader": "^0.18.2",