Remove the clientid key from this component and create a .env file to store the key.
Use REACT_APP_PAYPAL_CLIENT_ID as the variable that is created in the .env file attached to the key.
This should look like this in the .env file: REACT_APP_PAYPAL_CLIENT_ID=key
Then replace the key in the PaypalDonate.jsx component with const clientid = process.env.REACT_APP_PAYPAL_CLIENT_ID
Remove the
clientid
key from this component and create a .env file to store the key.Use
REACT_APP_PAYPAL_CLIENT_ID
as the variable that is created in the .env file attached to the key. This should look like this in the .env file:REACT_APP_PAYPAL_CLIENT_ID=key
Then replace the key in the PaypalDonate.jsx component with
const clientid = process.env.REACT_APP_PAYPAL_CLIENT_ID