title: how to send request to server with reactjs?
body: <p>I have a web application that is developed in jquery and spring mvc...all is working perfectly...but now I want to use React JS in my application...i want to create a form in react js and send ajax request to my spring mvc controller...I know how to do it with jquery but not with react js....kindly tell me a way to create a form and send a request to the spring mvc controler....
  this is my controller method where I want to get request...</p>
  <pre><code>@RequestMapping(value = &quot;/saveuser&quot;, method = RequestMethod.POST)
      public @ResponseBody String Save(/*@Valid Users user, BindingResult result,*/HttpServletRequest request, Model model, 
              @RequestParam(required = false) Boolean reverseBeforeSave) {
     
          String userName = request.getParameter(&quot;username&quot;);
          String password = request.getParameter(&quot;password&quot;);
          String firstName = request.getParameter(&quot;first_name&quot;);
          String lastName = request.getParameter(&quot;last_name&quot;);
          System.out.println(&quot;save method&quot;);
          String[] roleNames = request.getParameterValues(&quot;roles&quot;);
  
          userService.saveUserandRoles(userName, password, firstName, lastName, roleNames);
          return &quot;success&quot;;
          
      }
  </code></pre>
  <p>I went through different solutions in StackOverflow and have searched on google but I am not getting any proper result.</p>