<Root>component in the
/packages/my-first-theme/src/index.jsfile so that it returns an
<h1>element containing the text “Hello Frontity".
<Root>component into its own file which we'll put in a separate directory.
/packages/my-first-theme/src. This is where we will create all the component files for our theme. Then, inside
/packages/my-first-theme/src/componentscreate a new file called
index.jsfile in the
srcdirectory one level below in the structure).
<Root>component as before but moved into the new file and then exported. We also need to import React into our new file.
/packages/my-first-theme/src/index.jswhich you can modify as follows: