What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-23 12:49:07
difference between w component did update and did mount
componentDidMount() : invoked immediately after a component is mounted (inserted into the DOM tree) componentDidUpdate(prevProps, prevState, snapshot) : is invoked immediately after updating occurs. This method is not called for the initial render. Add solution -
Javascript 2021-10-20 12:42:12
import React, { memo } from 'react';
function MyComponent(props) { /* render using props */ } function areEqual(prevProps, nextProps) { /* return true if passing nextProps to render would return the same result as passing prevProps to render, otherwise return false */ } export de... Add solution
Best helpers
Ranking is empty