0.1.9 • Published 3 years ago

@instnt/react-instnt-js v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React Instnt.js

React components for Instnt.js.

build status npm version

Getting started

Documentation

Minimal example

First, install React Instnt.js and Instnt.js.

npm install @instnt/react-instnt-js @instnt/instnt-js

Using hooks

import React from 'react';
import ReactDOM from 'react-dom';
import {loadInstnt} from '@instnt/instnt-js';
import {

} from '@instnt/react-instnt-js';


const App = () => (
  <InstntSignUp >
    <CheckoutForm />
  </InstntSignUp>
);

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

Using class components

import React from 'react';
import ReactDOM from 'react-dom';
import {loadInstnt} from '@instnt/instnt-js';

const App = () => (
  <InstntSignUp instnt={instntPromise}>
    <InjectedCheckoutForm />
  </InstntSignUp>
);

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.

TypeScript support

React Instnt.js is packaged with TypeScript declarations. Some types are pulled from @instnt/instnt-js—be sure to add @instnt/instnt-js as a dependency to your project for full TypeScript support.

Typings in React Instnt.js follow the same versioning policy as @instnt/instnt-js.

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.15

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago