title: Facebook React.js :: how to create form input field and set type, autofocus, required etc
body: <p>Using REACTjs I can create form input fields as follows:</p>
  
  <pre><code>React.render(
    React.createElement('input', null, 'Hello, text input'),
    document.getElementById('example')
  );
  
  React.render(
    React.createElement('textarea', null, 'Hello, textarea'),
    document.getElementById('example')
  );
  </code></pre>
  
  <p>My desired input fields need to resemble this:</p>
  
  <pre><code> &lt;input autofocus type="text" name="name" placeholder="John Doe" required&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code> &lt;input type="url" name="website" pattern="(http|https)://.+" required&gt;
  </code></pre>
  
  <p>How do I set <code>autofocus</code>, <code>type</code>, <code>palceholder</code> &amp; <code>required</code> using <code>React.createElement();</code>?</p>
  
  <p>Do I use the <code>props</code> object?</p>