Check out example codes for "call procedure in wordpress". It will help you in understanding the concepts better.

Code Example 1

$wpdb->query("CALL procedure_name('para1','para2')");

Learn ReactJs, React Native from akashmittal.com