render() { let className = 'menu'; if (this.props.isActive) { className += ' menu-active'; } return <span className={className}>Menu</span> }
Instead of this:
//where the style sheet is contains the className style <span class="className">Menu</span>
When I first read about this many years ago I did not like it. I didn't understand it at the time.
I'd say that's "altered HTML" (JSX), but no CSS has been altered, right?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Instead of this:
When I first read about this many years ago I did not like it. I didn't understand it at the time.
I'd say that's "altered HTML" (JSX), but no CSS has been altered, right?