Skip to content

InHabit React Components to use in your project! 🚀

License

Notifications You must be signed in to change notification settings

rand0me/inhabit-react

Repository files navigation

inhabit-react

styled with prettier Greenkeeper badge Travis Coveralls

InHabit React Components to use in your project! 🚀

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).

About

InHabit React Components to use in your project! 🚀

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published