From 429ede3386e330be63f8dbeda92819d18762403e Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 22 Oct 2019 17:49:35 +0200 Subject: [PATCH] docs(readme): format --- .prettierignore | 3 ++- README.md | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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