New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React storybook #91
React storybook #91
Conversation
import { storiesOf, action } from '@kadira/storybook'; | ||
|
||
import './storybook.css' | ||
// for now just simply $ rake asset:precompile && mv public/assets/application-ebf... storybook/application.css |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this because some of my components use CSS? What's the way forward here? Move the CSS into something like Radium, or the other way around, use CSS modules or whatever they're called..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's just a quick and dirty way to give the components the same style as in the app. Unfortunately I have no clue what's the best way to handle component styling and I hadn't the chance to try radium etc yet. But it would be definitely nice if components would bring their own styles.
…ns-max-tracks DECKに入れられる最大曲数を表示
Chandrn7 openid sso2
I integrated a very useful tool called react-storybook. It basically allows you to create a catalogue of the app's React components. Have a look at the docs to learn more. Please give it a try:
Then open http://localhost:9001/ in a browser.
In my opinion this is a very nice companion to testing. What do you think?