Skip to content

Adding a component

Michal7Cohen edited this page Apr 21, 2019 · 12 revisions

Adding a component to the theme is possible as in any other React project. You will need to add a .js file with the component code to the src/components folder, under the existing folder hierarchy. The new component can be either a class component or functional component, choose the option that best suits your requirements.

You can also add styles to the component. It is recommended to place styles in a different .scss file which resides next to the components file.

Clone this wiki locally