diff --git a/README.md b/README.md index 0b8e93d..4eacde1 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,10 @@ Get the id from the gist url `https://gist.github.com/{your_name}/{id}` and set Single-file gist: ```js -var React = require('react'); -var Gist = require('react-gist'); +var React = require("react"); +var Gist = require("react-gist"); -React.render( - , - document.body -); +React.render(, document.body); ``` [![Edit react-gist-example-single-file](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/reactgistexamplesinglefile-z9vkc?fontsize=14) @@ -30,12 +27,12 @@ React.render( Multi-file gist: ```js -var React = require('react'); -var Gist = require('react-gist'); +var React = require("react"); +var Gist = require("react-gist"); React.render( - , - document.body + , + document.body ); ``` @@ -43,10 +40,11 @@ React.render( ## Usage -### `` +### `` - `id` {string} Id of the gist - `file` {string} Name of a specific file in a multi-file gist +- `title` {title} Specific name of the