Here is a summary of the code I have inside my React component:
getInitialState: function(){ return{link:\"\"} }, onClick1: function(){ this.setState({
If all that onClick does is change the state, then you shouldn't have two functions that do the same job. You should have the new value of the "link" state passed as an argument to the function "onClick" :)