Refactor components for development in isolation #534
mradenovic
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just spent some time with
storybook
, and it would be great not to have to start dev server, connected to dev backend, behind the firewall, away from airplane/train/favorite-park-bench. 😄A component that can not be tested in an isolated environment is probably poorly designed. Using
storybook
would enforce some good practices.I started working on it in #533. The process and tooling can be adjusted as needed when new problems are encountered.
storybook
with better options.storybook
(improve as need arises).useEffect
early and high in hierarchy (e.g., dispatchgetUserQueus()
when user logs in and after queue iscreated/deleted, read stateMyQueues
).storybook
aliases.README.md
with short instructions on how to usestorybook
and properly define components (include some of the above).Beta Was this translation helpful? Give feedback.
All reactions