i’m new to programming in general but i have a simple question.Sorry if this isn’t applicable but I’m trying to take the tutorials and implement the concepts for my own super simple program. I’d like to take a simple text input and return it inside a component. I know this should be extremely simple but I don’t get what to set the “action” to on the form element b/c when I return {this.props.myformrefID} I’m getting the Please use POST request error here: https://jsfiddle.net/69z2wepo/38225/#&togetherjs=3AARPdP6c0
Edit in JSFiddle
JavaScript 1.7
HTML
CSS
Resources
Result
var Hello = React.createClass({
render: function() {
return <div>Hello here we go {this.props.name}</div>;
}
});
ReactDOM.render(
<Hello name="James" />,
document.getElementById('container')
);
HTML
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<div id="headline">
<form className="adwords-ad">
<h2>Enter your Headline</h2>
<input type="text" ref="adID" required />
<input type="Submit" />
</form>
</div>
</div>
<div id="container">
<!-- This element's contents will be replaced with your component. -->
</div>