diff --git a/README.md b/README.md index 32ec673a..3298d597 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,9 @@ all, and write your own instead. ## Usage +- [Plain JavaScript](#button-superheroutilscreatebutton) +- [React.js](#reactjs-component) + ### Button (`superheroUtils.createButton`) This library exports a function that creates buttons. This function accepts arguments: - class name of nodes that should become buttons, or the DOM node itself @@ -79,6 +82,19 @@ Additional examples can be found [here](./index.html). Paywall +## React.js component + +### Usage with ES6 + +Props the same with [plain js vesrion](##button-superheroutilscreatebutton). + +#### Example: +```js +import Button from '@aeternity/superhero-utils/button-react'; + +