From what I am experiencing so far, it doesn\'t seem like ReactJS updates with the state of localStorage. My code below.
var Frr = React.createClass({ getIni
The .setItem() local storage function returns undefined. You need to perform the local storage update and then return the new state object:
.setItem()
undefined
switchoff: function(){ localStorage.setItem('state', 'off'); this.setState({lights: 'off'}); },