Austin Coding Academy Blog 403

matt coston
1 min readJan 23, 2021
  1. Discuss in words something you learned in class today or this week. I largely learned the difference between React hooks and React class components

2. What is render() in React? Explain its purpose. Render is a method that returns JSX and displays it on the website.

3. Is setState() async? The setState method is the method to update the component’s internal state. It’s an asynchronous method that’s batched.

4 . What are controlled components? A controlled component is a react component that controls the values of input elements in a form using setState()

5. Which (if there is) node library method could you use to solve the algorithm problem you solved last night in your pre-homework? n/a

6. Which (if there is) node library method could you use to solve the algorithm problem you solved in class tonight? n/a

7. What is the event loop in JavaScript? See: https://www.educative.io/edpresso/what-is-an-event-loop-in-javascript

8. Why does ReactJS use className over class attribute? Class is a reserved word in Javascript so React has to use className instead.

--

--

matt coston
0 Followers

Hey there! I'm an IT manager by day, and I dabble in all things web development by night.