Getting Started
Installation
Using yarn
yarn add buffetjs# Install the required dependencies yarn add lodash prop-types react react-dom react-router-dom styled-components
or npm
npm install buffetjs --save# Install the required dependencies npm install lodash prop-types react react-dom react-router-dom styled-components --save
Example
Import buffet.js into your project as follows:
;; const Page = { const state setState = React; return <header> <p>Title</p> </header> <section> <Enumeration name="enumeration" onChange= options= value: 'flour' label: 'Flour' value: 'milk' label: 'Milk' value: 'butter' label: 'Butter' value=state /> </section> <footer> Made with love by Strapi </footer> ;} ;
Documentation
See the documentation at buffetjs.io/storybook for more informations.