diff --git a/.prettierignore b/.prettierignore index 2e0dfce8..e97773a6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -example/src \ No newline at end of file +example/src +*.md \ No newline at end of file diff --git a/README.md b/README.md index 2258dc11..f5d3ae03 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ npm install github:wbkd/react-flow # Usage -This is a very basic example of how to use react-flow. There are more advanced examples in the [example](/example) folder. +This is a very basic example of how to use react-flow. There are more advanced examples in the [example](/example/src) folder. ```javascript import React from 'react'; @@ -22,7 +22,11 @@ const elements = [ { id: 'e1-2', source: '1', target: '2', animated: true }, ]; -const BasicGraph = () => ; +const graphStyles = { width: '100%', height: '100%' }; + +const BasicGraph = () => ( + +); ``` # Props