reactjs - use react to change css when selectors are typed out -
i'm trying create page similar this: samuel reed , css changing when selectors typed out. i've created onclick functions works want them i'm not sure how make them work without links. if point me in right direction, appreciated! this code, i'm using reactjs var colorchanger = react.createclass({ getinitialstate: function() { return { color: '#f00', backgroundcolor: '#fff' }; }, changecolor: function() { this.setstate({ color: '#00f' }); }, changebgcolor: function() { this.setstate({ backgroundcolor: '#000' }); }, changepadding: function() { this.setstate({ padding: '10px' }); }, changewidth: function() { this.setstate({ width: '400px' }); }, changemargin: function() { this.setstate({ margin: '0 auto' }); }, render: function(){ var style = { color: this.state.color, backgroundc...