# profitwell-component

> Simple react component to track by profitwell

Latest version **0.1.2** (published 2019-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install profitwell-component
pnpm add profitwell-component
yarn add profitwell-component
bun add profitwell-component
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-01-12 |
| First published | 2019-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hidetaka Okamoto |
| Maintainers | hideokamoto |
| Keywords | react-component |

## Links

- npm: https://www.npmjs.com/package/profitwell-component
- Homepage: https://github.com/hideokamoto/profitwell-component
- Issues: https://github.com/hideokamoto/profitwell-component/issues
- npm.io page: https://npm.io/package/profitwell-component

## Recent versions

- 0.1.2 (latest) — 2019-01-12
- 0.1.1 — 2019-01-12
- 0.1.0 — 2019-01-12
- 0.0.1 — 2019-01-12

## README

# profitwell-component

[![npm package][npm-badge]][npm]

Simple react component to track by profitwell.

[npm-badge]: https://img.shields.io/npm/v/profitwell-component.png?style=flat-square
[npm]: https://www.npmjs.org/package/profitwell-component

## Usage

You can add tracking code by following.

```
import Profitwell from 'profitwell-component';

const App = ({email}) => {
  return (
    <div>
      <h1>Hello World</h1>
      <Profitwell authToken="YOUR_PROFITWELL_TOKEN" email={email} />
    </div>
  )
}
```

And use `shouldNotLoad` prop, you can run only specific environment.

```
import Profitwell from 'profitwell-component';

const App = ({email}) => {
  const isDevelopment = process.env.NODE_ENV !== 'production'
  return (
    <div>
      <h1>Hello World</h1>
      <Profitwell
        authToken="YOUR_PROFITWELL_TOKEN"
        email={email}
        shouldNotLoad={isDevelopment}
      />
    </div>
  )
}
```

---
_Source: https://npm.io/package/profitwell-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
