Rob Watkins
1 min readApr 13, 2020

--

BlogPost_404

Austin Coding Academy

Discuss in words something you learned in class today or this week. I learned about how to make state available to components using context.

How does hoisting work in JavaScript? Basically, functions are hoisted up to the top level so as to be available to any programs at the same level of scope.

Why is setState() in React Async instead of Sync? Because react can’t guarantee that it will happen instantaneously.

How is the Virtual-DOM more efficient than Dirty checking? The virtual DOM has reference to the actual DOM and only changes the actual DOM when necessary.

What is PureComponent? When to use PureComponent over Component? A pure component is one that has no side effects. Use a pure component if you want it to be reusable.

What is a higher order component? A higher order component, just like functions of the same name, take callbacks as arguments.

Which (if there is) node library method could you use to solve the algorithm problem you solved last night in your pre-homework. I’m not sure.

Which (if there is) node library method could you use to solve the algorithm problem you solved in class tonight? I’m not sure.

How do you think you might use the checkAuth() function to actually verify a user's email and password? Once the info is gathered, check it against the database to verify.

--

--