Meredith Davis
Oct 25, 2020

--

Blogpost 403

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

This week I learned a lot about REACT’s different lifecycle methods like componentDidMount and componentDidUpdate and how they give us greater flexibility while programming in REACT.

What is render() in React? Explain its purpose.

In react, render is a method that tell react what to display. Return in a method or function is the output of the method or function.

Is setState() async?

Yes it’s async.

What are controlled components?

In a controlled component, the form data is handled by the state within the component.

What is the event loop in JavaScript?

The event loop continuously checks the call stack to see if there’s any function that needs to run.

While doing so, it adds any function call it finds to the call stack and executes each one in order.

Why does ReactJS use className over class attribute?

Class is a keyword in Javascript and JSX is an extension of Javascript. So in order to avoid using the reserved word class and match the DOM className, React uses className instead of class.

--

--

Meredith Davis
0 Followers

Former Kindergarten Teacher, now a student at Austin Code Academy learning Front Stack Web Development