Despite having an NPM module for Stripe, they do not support it for client applications. You will need to add the stripe.js library using the script tag to the index.html page (or wherever you generate the HTML element that React will mount and import the React scripts):
<script src="https://js.stripe.com/v3/"></script>
This is the recommended method from the Stripe documentation. It will create a Stripe object in a global area where it will be available for your React code.
I would be very afraid to use the library for payments in any way, except for those supported by its developer - I think that you are right to avoid ReactScriptLoader and dangerouslySetInnerHtml for this purpose.
If you are using ESLint, you can specify the global top of your JSX file to stop the warning:
source share