Skip to content

20230601

Eric Lentz edited this page Jun 2, 2023 · 4 revisions

image of code

1: Standard React structure created with npx create-react-app eod. See React getting started page for more information.

2: This is a component, which is just a normal JavaScript function that is exported (see bottom of file) so others can access it.

3: Returns JSX, which is HTML-like JavaScript

4: There must be 1 and only 1 wrapping tag

5: You can include CSS and then add class references, such as in the className of the header tag

Clone this wiki locally