Wanted to POST custom form data through Wordpress API using ReactJS. Like we use AJAX in Wordpress using something like
jQuery.ajax({
        type: 'POST',
        data: {
            action  : 'formData',  // wp_ajax_nopriv_formData
            data    : formData  // data from form
        },
        url: ajaxurl  // admin.php
    }).done(){...}
Wordpress and React are not on the same domain. I am using wp-apiv2.
- Are there any working examples regarding this? (React or Angular)
- How can I use OAuth to get to admin.php in Wordpress to submit my form?
I wanted to know how can I use WP-API to submit custom form through React (as front end) as an external call e.g.
abc.com - Wordpress domain with wp-api installed xyz.com - ReactJS implemented website - from here I will call all the API's endpoints
 
    