Skip to content

richard-od/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

About

Simple example of how to use chargify.js in react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.8%
  • HTML 15.3%
  • CSS 7.9%