Create Simple Component
To create a new component of an HTML element or other component, connect the atomize
library:
Atomize is a wrapper for styled-components and has a similar API. Just call the method using the name of the desired HTML element. For example, create a new element from a button
:
You can also create a new component from an existing one:
An example of how to create a component from an imported one:
An example of how to create a component from an existing one:
As a result, we get a React component that can accept any CSS style or parameter, for example: