I think some problem with the below line
div className={icon-search-container ${this.state.active ? 'active' : ''}}>
in my protype code they are rendering at
prototype code - working http://codepen.io/tasssik/pen/yeGozR
Not working code http://codepen.io/anon/pen/zrymwq
main code to be fixed
<div className={`icon-search-container ${this.state.active ? 'active' : ''}`}>
<a onClick={this.handleClick} href="javascript:;" className="fa fa-search sportsTopSection-navUtilities-search">
<span className="hidden">Search <abbr>NBA</abbr>.com</span>
</a>
<input type="text" ref='search'className="search-input" placeholder="Search" onBlur={() => this.setState({active: false})}/>
<span className="fa fa-times-circle"
onClick={() => this.setState({active: false})}>
</span>
</div>
The example of what isn't working is a bit long and messy, so maybe I missed it, but I don't think you are calling React.render(), so that is one big problem. Also, custom components must start with a capital letter: <SportsTopSection />, not <sportsTopSection/>.
Edit in response to cleaner code: Well, the short answer is "It isn't rendering because it is throwing an error first." Why is it erroring first? The error says "exports is not defined." I don't use CodePen, but I would be surprised if import and exports worked in it. Have you looked if that is the issue?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With