From the course: Building UI Components with Storybook: Master React Components and UI Design with Storybook for Better Efficiency

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

What are actions in Storybook and the synthetic base event object?

What are actions in Storybook and the synthetic base event object?

Why, hello there. Should I start to call you Benjamin, because you've made a button? Okay, that pun only works if you actually made your own button, or you found a cool button and implemented it. Whatever floats your boat. Whatever worked for you. If you didn't make a button, then I can't really call you Benjamin Button. I'll call you Johnny Nutten. Okay? Johnny Nutten. Enough with all these names. Hopefully you're feeling pretty good now, in terms of your understanding of, okay, we can make stories, we can... We have effects of this controls essentially and docs and we can build our stories up. We can take different versions, do all sorts of things, create defaults, descriptions. So hopefully this is becoming nice and clear. I want to really leverage the testing of what the button does in the counter component. The actions and interactions for this button counter are going to be fairly minimal to none. The interactions would be to test whether or not the button really increments when…

Contents