I\'m still learning ReactJS. I\'m challenging myself to write a very basic todo app (as one does) and I\'m having an issue calling an onClick function.
var L
You should bind this explicitly to the handleClick function to be referring to the React component not the map function, so you can refactor your code as follow:
var items = list.map(renderListItem.bind(this));
And add renderListItem method in your React class as follow:
renderListItem(item) {
return (
-
);
}