# react-powerbi-client

> A library which wraps the core powerbi-client library by providing components to easily embed within your react applications.

Latest version **0.0.3** (published 2018-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-powerbi-client
pnpm add react-powerbi-client
yarn add react-powerbi-client
bun add react-powerbi-client
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-08-16 |
| First published | 2018-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Microsoft Power BI Team |
| Maintainers | shadel |
| Keywords | microsoft, powerbi, react, javascript, embedded, reports, bi, business, intelligence |

## Links

- npm: https://www.npmjs.com/package/react-powerbi-client
- Repository: https://github.com/shadel/PowerBI-React
- Homepage: https://github.com/shadel/PowerBI-React#readme
- Issues: https://github.com/shadel/PowerBI-React/issues
- npm.io page: https://npm.io/package/react-powerbi-client

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^15.3.1
- [webpack](https://npm.io/package/webpack.md) ^4.16.5
- [react-dom](https://npm.io/package/react-dom.md) ^15.3.1
- [ts-loader](https://npm.io/package/ts-loader.md) ^4.4.2
- [powerbi-client](https://npm.io/package/powerbi-client.md) ^2.1.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-08-16
- 0.0.2 — 2018-08-16

## README

# react-powerbi-client
Power BI for React JS which provides components and services to enabling developers to easily embed Power BI reports into their applications.

## Getting started

Install

```bash
npm install --save react-powerbi-client
```

Include

```javascript
import { Report } from 'react-powerbi-client';
```

Render component

```jsx
<Report 
  id={this.state.embedConfig.id}
  embedUrl={this.state.embedConfig.embedUrl}
  accessToken={this.state.embedConfig.accessToken}
  filterPaneEnabled={true}
  navContentPaneEnabled={false}
  onEmbedded={this.onEmbedded}
/>
```

## Example
```javascript
import React, { Component } from 'react';
import { Report } from 'react-powerbi-client';

export default class extends Component {
  onEmbedded(embed) {
    console.log(`Report embedded: `, embed, this);
  }

  render() {
    return (
      <div>
        <h1>react-powerbi demo</h1>

        <Report
          id={this.state.embedConfig.id}
          embedUrl={this.state.embedConfig.embedUrl}
          accessToken={this.state.embedConfig.accessToken}
          filterPaneEnabled={true}
          navContentPaneEnabled={false}
          onEmbedded={this.onEmbedded}
        />
      </div>
    );
  }
}

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