I don't want to display "no file selected" on input file and replacing with another button.
var form = React.createClass({
render : function(){
var fileStyle = { display : none };
return (
<form>
<input id="file" type="file" style={fileStyle}>
<button onClick={ /* how to perform click on file*/ }> click to add image</button>
</form>
);
}
});
I want when I click button then input file is perform click.
How to accomplish this within React js?