4 ms·
Write CSS inside your JavaScript
- fbonetti 11y agoThis is basically jQuery for CSS. You need to manually update the stylesheet in response to events, instead of changing the state and having the virtual DOM do the work for you. I'm really surprised the author went through all the trouble of making this, considering that you can handle dynamic styling via inline styles in React. class MyComponent { render() { return ( <div style={{color: this.state.color}}> My Text </div> ); } }
- arunkjn 11y agoThis is really interesting stuff