Components And Props
This function is a valid React component because it accepts a single “props” object argument with data and returns a React element. We call such components “function components” because they are literally JavaScript functions. Learn how and why we build nearly all our components responsively and with base and modifier classes. Web Components This allows one component to identify to one or more other components that an event has occurred so that the component can respond to it. If we are building a blog, we will likely need a component representing a blog post. We want all the blog posts to share the same visual layout, but with different content. Option list The option list component lets you create a list of grouped items that merchants can pick from. This can include single selection or multiple selection of options. Option list usually appears in a popover, and sometimes in a modal or a sidebar. However, if you integrate React into an existing app, you might start bottom-up with