Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bpmn-io/react-bpmn

Display BPMN 2.0 diagrams in React.
https://github.com/bpmn-io/react-bpmn

bpmn bpmn-js react

Last synced: 7 days ago
JSON representation

Display BPMN 2.0 diagrams in React.

Awesome Lists containing this project

README

        

# react-bpmn

[![CI](https://github.com/bpmn-io/react-bpmn/workflows/CI/badge.svg)](https://github.com/bpmn-io/react-bpmn/actions?query=workflow%3ACI)

Use [bpmn-js](https://github.com/bpmn-io/bpmn-js) to display BPMN 2.0 diagrams in a [React](https://reactjs.org/) application.

## Usage

```javascript
import ReactBpmn from 'react-bpmn';

function App(props) {

function onShown() {
console.log('diagram shown');
}

function onLoading() {
console.log('diagram loading');
}

function onError(err) {
console.log('failed to show diagram');
}

return (

);
}
```

## Development

To get the development setup make sure to have [NodeJS](https://nodejs.org/en/download/) installed.
As soon as you are set up, clone the project and execute

```
npm install
npm run all
```

## Example

To run the example, execute `npm run start` and open http://localhost:9869/public in your Webbrowser.

## Resources

* [Issues](https://github.com/bpmn-io/react-bpmn/issues)
* [Example](./example)

## License

MIT