-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Remove cra-kitchen-sink
example
#19179
Conversation
title: 'Lifecycle', | ||
}; | ||
|
||
export const Logging = () => <LifecycleLogger />; |
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.
You needed to check the browser console to see these, and half the methods weren't called anyway. Not sure there was a lot of benefit. If we see problems with react lifecycle, let's create a targetted story with a play()
function to verify things work right.
component: FastRefreshExample, | ||
}; | ||
|
||
export const Default = () => <FastRefreshExample />; |
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.
I've no idea what this tested, the component is really generic.
let count = 0; | ||
const increment = () => { | ||
count += 1; | ||
forceReRender(); |
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.
We have a story that triggers this event and verifies it.
}; | ||
|
||
export const Story1 = () => <Button>Hello Button</Button>; | ||
Story1.storyName = 'with text'; |
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.
This is a UI unit test style story, 🤷
This storybook seemed to mainly just have some react rendering testing stories, which were either already created or not actually useful at all (we never looked at them, AFAIK).