https://github.com/adrianmcli/drizzle-react-usage-example
https://github.com/adrianmcli/drizzle-react-usage-example
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adrianmcli/drizzle-react-usage-example
- Owner: adrianmcli
- Created: 2019-05-14T10:10:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-14T10:11:09.000Z (almost 7 years ago)
- Last Synced: 2025-01-17T04:44:27.845Z (about 1 year ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drizzle React `contextType` Example
Look at `App.js` to see how you should wrap your top-level component with a `Provider`.
Then, in any child component in the component tree, you can have a class-based component like `MyComponent` to easily access the drizzle context passed in by the provider. There is no consumer component required in this pattern.
Run `npm start` to launch, and look at the console.