title: React Component vote up and down
body: <p>I need to create a react component with an input and 2 buttons.</p>
  
  <p>Where the input starts with a defined number in it says 25.</p>
  
  <p>Let I have a button which makes the count -1 and another button which makes the count +1.</p>
  
  <p>This is where I am:</p>
  
  <pre><code>import React from 'react';
  
  export class VoteUpDown extends React.Component {
  
    render() {
      return (
        &lt;div&gt;
          &lt;input value="25" /&gt;
          &lt;button className="countUp"&gt;UP&lt;/button&gt;
          &lt;button className="countDown"&gt;DOWN&lt;/button&gt;
        &lt;/div&gt;
      );
    }
  }
  </code></pre>
  
  <p>How can I do this as a react component?</p>