blog 401

Discuss in words something you learned in class today or this week.

We have learned many new things this week since starting to program in a new paradigm: React.js. Componentizing our code not only makes it more modular and reusable but can clean up messy code to create something more elegant as well. I am having fun with React so far and look forward to diving into it deeper and deeper.

Why/when would you use a class-based component vs a functional component?

What is create-react-app?

  • If you’re learning React or creating a new single-page app, use Create React App.
  • If you’re building a server-rendered website with Node.js, try Next.js.
  • If you’re building a static content-oriented website, try Gatsby.
  • If you’re building a component library or integrating with an existing codebase, try More Flexible Toolchains.

What are the differences between a class component and a functional component?

What is JSX?

How does React work? How does the virtual DOM work in React?

What’s the difference between an element and a component in React?