1.0.4 • Published 5 years ago

inhabit-react v1.0.4

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

inhabit-react

styled with prettier Greenkeeper badge Travis Coveralls

InHabit React Components to use in your project! :rocket:

Installation

NPM

npm i inhabit-react

Yarn

yarn add inhabit-react

Usage

import React from "react";

// Import InHabit Component
import { InHabit } from "inhabit-react";

export class MyComponent {
    render() {
        return (
            <div>
                <!-- ...some content... -->
                <InHabit client="your-client-id" />
                <!-- ...some content... -->
            </div>
        )
    }
}

FAQ

Should I add <script> tag despite I'm using this component?

No, it will do it for you.

Where should I add this component?

Typically you want this to be somewhere inside you Article component (in case you have a Single-Page Application) to give it a chance to re-render when article will be changed (new text appears on a page).

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago