1.0.2 • Published 2 years ago

@network-leads/react-contracts-js v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React Contracts by Network Leads

React components for Contracts

build status npm version

This is a package to install the React fron-end plugin of creating, editing & signing contracts. To interact with the API - see contracts-js

Minimal example

First, install react-contracts-js and contracts-js.

npm install @network-leads/react-contracts-js

Using hooks

import React from 'react';
import ReactDOM from 'react-dom';
import Contracts from "@network-leads/react-contracts-js";

const App = () => {

  const save = async (id) => {
      // id of the newly created template
  }
  
  return (
    <div>
        <Contracts publishKey={"XXXXXXXXXXXXXX"} onSave={save} />
    </div>
  );
};

ReactDOM.render(<App />, document.body);

Minimum requirements

The minimum supported version of React is v16.8. If you use an older version, upgrade React to use this library. If you prefer not to upgrade your React version, we recommend using legacy.

Contributing

If you would like to contribute to React Stripe.js, please make sure to read our contributor guidelines.