Rather than creating several putPriority fetches, I\'d ideally just like to pass a singular value.
But this value won\'t be entered via the user (ie not an input field)<
You can use bind()
to pass value to the handleClick
function and the instead of this.state.level
just use value liek
body: JSON.stringify({
status:value,
tag:[
{}
]
})
var App = React.createClass ({
putPriority: function(value, e) {
e.preventDefault();
console.log(value);
},
render: function(){
return (
)
}
})
ReactDOM.render( , document.getElementById('app'));