How to Master Perspective

Some people might answer talent, others may say years of experience, and the absolute most dreaded answer “hmm… about $30,000 of equipment.” Luckily, learning the fundamentals is often free. If you…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Blog Post 404

In class learning is minimal because we move very quickly. most of my learning is done outside of the classroom.

2. How does hoisting work in JavaScript?

Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution. Inevitably, this means that no matter where functions and variables are declared, they are moved to the top of their scope regardless of whether their scope is global or local.

3. Why is setState() in React Async instead of Sync?

This is because setState alters the state and causes rerendering. This can be an expensive operation and making it synchronous might leave the browser unresponsive. Thus the setState calls are asynchronous as well as batched for better UI experience and performance.

4. How is the Virtual-DOM more efficient than Dirty checking?

Dirty checking is slower than observables because you must poll the data at a regular interval and check all of the values in the data structure recursively. … This isn’t really related to dirty checking your data. You could re-render using a virtual DOM with or without dirty checking.

5. What is PureComponent? When to use PureComponent over Component?

When props or state changes, PureComponent will do a shallow comparison on both props and state. Component on the other hand won’t compare current props and state to next out of the box.

6. What is a higher order component?

a higher-order component is a function that takes a component and returns a new component.

7–8. Which (if there is) node library method could you use to solve the algorithm problem you solved last night in your pre-homework/classwork.

Can we go over these questions in class?

9. How do you think you might use the checkAuth() function to actually verify a user's email and password?

Create a middleware function named CheckAuth which is used on every route that needs the user to be authenticated. This will check if the user is authenticated (example below):

Add a comment

Related posts:

NOSSO TIME

Apresentar esse texto é de muita responsabilidade. Saber identificar e descrever de forma criativa cada membro da nossa equipe e, de alguma forma, mostrar que nossas diferenças nos fortalecem de…

How to do a Jigsaw in your teaching

The activity makes it easier for the students to read and understand long and/or complicated texts. The students practice presenting and arguing. Everybody participates and takes responsibility for a…

The Closing Bell

Markets end a volatile week unchanged as geopolitical concerns and Trump turmoil kept investors on the sidelines. Wall Street closed mostly flat today. The Dow bounced off earlier lows after White…