title: How to retrieve data from reactjs and API
body: <p>I am trying to post form data from react to node backend, How to do thtat ?
  my React code is : </p>
  
  <pre><code>import fetch from 'isomorphic-fetch';
  
  export function createBio (data) {
  
      console.log(data);
  
      return fetch('http://localhost:3001/user/create', {
          method: 'POST',
          mode: 'no-cors',
          body: JSON.stringify(data),
          headers: {
  
              'Content-Type': 'application/json',
  
          }
  
      }).then(res =&gt; {
          return res;
      }).catch(err =&gt; console.log(err));
  }
  </code></pre>
  
  <p>My NodeJs code</p>
  
  <pre><code>router.post('/create', (req,res,) =&gt; {
  
      var user = new User({title: req.params.title || "Untitled Note", body: req.params.body});
      user.save();
  
  });
  </code></pre>
  
  <p>How to retrieve <strong>data</strong></p>