Full course lesson post - https://whatjackhasmade.co.uk/storybo...
GitHub Project Repository - https://github.com/whatjackhasmade/st...
What You'll Learn
How to pass multiple props to a React component
How to write multiple stories on a single component
How to attach an onClick function to our button component
How to dynamically swap out the HTML element returned by our React component
How to use PropTypes in React
Why you would want to use a typed language
In this lesson, we'll be revisiting our Button component. Adding new properties that we will process and document in our pattern library.
A refreshing reminder, the Button component falls under the concept of an atom as it is a low-level component that can be used in many other components.