docs(README): add rendering hint

This commit is contained in:
Nico Rehwaldt 2018-02-05 16:24:05 +01:00
parent 908c29c0d5
commit 0f80ce4516
1 changed files with 5 additions and 1 deletions

View File

@ -15,10 +15,14 @@ Include the library [pre-packaged](https://github.com/bpmn-io/bpmn-js-examples/t
or include it [via npm](https://github.com/bpmn-io/bpmn-js-examples/tree/master/bundling)
into your node-style web-application.
Create a [bpmn-js](https://github.com/bpmn-io/bpmn-js) instance and render
[BPMN 2.0 diagrams](www.omg.org/spec/BPMN/2.0.2/) in the browser:
```javascript
var xml; // my BPMN 2.0 xml
var viewer = new BpmnJS({ container: 'body' });
var viewer = new BpmnJS({
container: 'body'
});
viewer.importXML(xml, function(err) {