Skip to content

chargify/chargify-js-react-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Edit src/components/ChargifyForm.js and fill in your own data under publicKey and serverHost in the first useEffect function call.

Next run:

npm install
npm start

Explanation for switching off eslint warnings

  • On line 44 of src/components/ChargifyForm.js: We're fine because we really only want this hook to run once when the component is mounted.
  • On line 53 of src/components/ChargifyForm.js: We're also fine because chargify.current does not point to a node rendered by React.

External references on migrating to React Hooks