This is my HTML code, it worked fine couple months ago? I'm copying full path and running it on browser, with Ubuntu. Is this something to do with React not working with that?
<div id='root'></div>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
<script src="app.js" type="text/babel"></script>
Here is part of my JS, where I render the stuff. Should work fine. I left out the functions that give functionality to program itself.
render: function() {
return (
<div className="todoListMain">
<div className="header">
<form onSubmit = {this.addItem}>
<input ref={(a) => this._inputElement = a}
placeholder="enter task">
</input>
<button type="submit">add</button>
</form>
</div>
<TodoItems entries={this.state.items}/>
</div>
);
}
});
ReactDOM.render(
<TodoList/>,
document.getElementById('root')
);
This all worked fine while ago, tho that time I used wamp localhost with windows.