Component structure
Last updated
Was this helpful?
Last updated
Was this helpful?
All of the components created in this training will be housed under the src/components directory. Each will have it’s own index.js
and styles.module.scss
file.
The index.js
files for the components will be where we use for the markup as well any javascript we may need.
In the styles.module.scss
file will be all of our unique styles for each component.
A typical component structure looks like this: