You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Viewport addon makes it easy to see the components inside smartphone-sized layouts.
The Controls addon allows you to define properties of the component that can then be easily edited via the Storybook UI. For example, the bitcoin amount on the homescreen can be a property. You'd see a numerical input field in the Storybook UI, and changing it there would push the new amount into the live component where it would instantly re-render. This is super convenient to test component states.
The text was updated successfully, but these errors were encountered:
@GBKS thank u for suggesting this.
Analyzing components using inspect was really giving me a headache.
I was using mobx store for global state management, but for local state management and component state testing Controls addon is perfect.
The Viewport addon makes it easy to see the components inside smartphone-sized layouts.
The Controls addon allows you to define properties of the component that can then be easily edited via the Storybook UI. For example, the bitcoin amount on the homescreen can be a property. You'd see a numerical input field in the Storybook UI, and changing it there would push the new amount into the live component where it would instantly re-render. This is super convenient to test component states.
The text was updated successfully, but these errors were encountered: