Skip to content

Commit

Permalink
docs: update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Jan 2, 2020
1 parent ab49248 commit 8b185f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -30,12 +30,10 @@ $ yarn add @antv/x6
```

```ts
import { Graph } from '@antv/x6'
import { x6 } from '@antv/x6'

const container = document.getElementById('container')
const graph = new Graph(container)

graph.render({
const graph = x6.render(container, {
nodes: [
{
id: 'node-0',
Expand Down
6 changes: 2 additions & 4 deletions packages/x6/README.md
Expand Up @@ -30,12 +30,10 @@ $ yarn add @antv/x6
```

```ts
import { Graph } from '@antv/x6'
import { x6 } from '@antv/x6'

const container = document.getElementById('container')
const graph = new Graph(container)

graph.render({
const graph = x6.render(container, {
nodes: [
{
id: 'node-0',
Expand Down

0 comments on commit 8b185f8

Please sign in to comment.