mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
adds Redux and changes to index.jsx page
This commit is contained in:
parent
1673d43993
commit
ffda8b259b
3 changed files with 5 additions and 1 deletions
|
@ -12,6 +12,6 @@ const Settings = () => (
|
|||
document.addEventListener('DOMContentLoaded', () => {
|
||||
ReactDOM.render(
|
||||
<Settings />,
|
||||
document.body.appendChild(document.createElement('div'))
|
||||
document.getElementById('root')
|
||||
)
|
||||
})
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue