Compare commits

...

2 Commits

Author SHA1 Message Date
caramujosan
4e412970aa Merge 58f626bb22 into 10872e02d1 2024-06-15 18:18:59 +01:00
Caramujo-San
58f626bb22 Update react.js 2023-02-15 17:12:04 -03:00

3
frontend/react.js vendored
View File

@@ -136,7 +136,8 @@ class Component extends React.Component {
// Invoked immediately after updating occurs. This method is not called for the initial render. // Invoked immediately after updating occurs. This method is not called for the initial render.
// Use this as an opportunity to operate on the DOM when the component has been updated. // Use this as an opportunity to operate on the DOM when the component has been updated.
// This is also a good place to do network requests as long as you compare the current props to previous props (e.g. a network request may not be necessary if the props have not changed). // This is also a good place to do network requests as long as you compare the current props to
// previous props (e.g. a network request may not be necessary if the props have not changed).
componentDidUpdate(prevProps, prevState) { } componentDidUpdate(prevProps, prevState) { }
// Invoked immediately before a component is unmounted and destroyed. // Invoked immediately before a component is unmounted and destroyed.