I'm currently using deepstream with nodejs. Right now, I'm following the tutorial here to get use to the new library: deepstream tutorial
However, I'm getting an error once I finish the RenderDOM part of the file. Here's the current code:
<!DOCTYPE html>
<html>
<head>
<script src="deepstream.js"></script>
</head>
<body>
<input type="text" />
<script type="text/javascript">
const deepstream = require('deepstream.io-client-js')
const DeepstreamMixin = require('deepstream.io-tools-react')
const client = deepstream('localhost:6020').login({}, () => {
//ReactDOM.render call will go in here
ReactDOM.render(
<SyncedInput dsRecord="some-input" />,
document.getElementById('example')
)
const SyncedInput = React.createClass({
mixins: [DeepstreamMixin],
setValue: function(e) {
this.setState({value: e.target.value})
},
render: function() {
return (
<input value={this.state.value} onChange={this.setValue} />
)
}
})
})
DeepstreamMixin.setDeepstreamClient(client)
</script>
</body>
</html>
The error shows up at this line within render:function : "input value"