August 2018
Intermediate to advanced
404 pages
11h 19m
English
npm install --save drizzle
If you are already using React, you can get the react flavored drizzle to use with your application. Use the npm install --save drizzle-react command to get the library. If you are starting from scratch, it is recommended to get the drizzle box using truffle unbox drizzle. It includes a complete example of using drizzle-react in your DApp.
import { Drizzle, generateStore } from 'drizzle';
const options = { contracts, events: { contractName: [ eventName ] }, polls: ...