0
"no file selected"
を入力ファイルに表示して別のボタンに置き換えたくありません。jsxオブジェクトにjavascriptを挿入する方法
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>
);
}
});
ボタンをクリックして入力ファイルをクリックしたいときにクリックします。
React js内でこれを行う方法は?
質問が不明です。 – alexunder