storybook-addon-material-ui | storybook wich wrap material-ui components | User Interface library
kandi X-RAY | storybook-addon-material-ui Summary
kandi X-RAY | storybook-addon-material-ui Summary
Addon for storybook wich wrap material-ui components into MuiThemeProvider. :page_with_curl: This helps and simplifies development of material-ui based components.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns a promise that resolves when the theme is loaded .
- Registers a module .
- Copy clipboard to clipboard .
- Copy the current text to clipboard .
- Wrapper for a channel .
- Return checkedbox .
- toggle off .
- Retrieve a reference of a component
- Load all story objects .
- generate the packager
storybook-addon-material-ui Key Features
storybook-addon-material-ui Examples and Code Snippets
Community Discussions
Trending Discussions on storybook-addon-material-ui
QUESTION
The title pretty much explains what I'm facing. I'm trying to test a React
component that has some state, and I attempt to provide my store to the component in order to get what it needs. When I run the test of the component using Jest, I get the following error:
ReferenceError: regeneratorRuntime is not defined
I've determined through some reading that this is caused by babel-polyfill
or regenerator-runtime
not being applied correctly to Jest. However, I've tried installing both of those packages and re-running with no change in results. After reading the Jest Github issues page (Remove auto-inclusion of babel-polyfill #2755), I found out that babel-polyfill
is not included automatically by Jest as of version 19. My manual installation of that package should have fixed the issue, but it did not. I've included some of the files that I think are relevant
.babelrc
:
ANSWER
Answered 2017-Sep-21 at 05:26I used import "babel-polyfill"
and it solved my problem
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install storybook-addon-material-ui
create-react-app
Storybook
Material-UI
storybook-addon-material-ui
First, install the addon.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page