Just to clarify, because I see how you use:
var TodoList = React.createClass({
instead
class TodoList extends React.Component {
and the question about closing brackets in the comments above: "Are there any missing closing brackets ((filterItem, index)" "
I assume you are not using es6 syntax, so I wanted to indicate that
{ this.filterOptions.map(function(filterItem, index) { return ( <li key={index}> <span>{filterItem}</span> </li> ) }, this) }
equally
{ this.filterOptions.map((filterItem,index) => { return ( <li key={index}> <span>{filterItem}</span> </li> ); }) }
source share