Skip to content

React Notes 2

In a React application, the App.js file typically is the top level of your application, and index.js is the entry point.

To clarify: the DOM is used in React applications, but it isn’t part of React. After all, the DOM is also used in countless non-React applications. Methods imported from 'react' are only for pure React purposes, such as creating components or writing JSX elements.

In the past, React components were defined using Javascript classes. But since the introduction of Hooks, function components have become the standard in modern React applications.

Our instructions can include a combination of markup, CSS, and JavaScript to produce the desired result. The one thing we must always include is a return statement.

On this page

No Headings