Using Woocommerce as backend & ReactJS as frontend?
WooCommerce provides REST API which you can use to power your frontend. However for that you need to provide consumer key and consumer secret to your frontend, which is not a good idea security-wise, so it is ideal to create a API proxy and make the frontend communicate with the proxy which then routes the calls to the actual API using the key and secret.
First of all you have to create API keys:
To start using REST API, you first need to generate API keys.
Go to WooCommerce > Settings > Advanced
Go to the REST API tab and click Add key.
Give the key a description for your own reference,
Choose a user with access to orders etc.
Give the key read/write permissions.
Click Generate API key.
Your keys will be shown
Do not close this tab yet, the secret will be hidden if you try to view the key again.
You can use the following guides:
Maybe you need to allow the CORS too, use this guid
Finally better to use JWT-authentication in addition to API KEY.