How to use React router onenter?

Today I used the react-router onEnter function to verify that the user is logged in. When I went to the official website to check the API document, I found that the V4 version of the document did not have this method, but the v3 document had a description of the API. But I can still use this method normally, and I wonder if the v4 version is abolished or not recommended.
my purpose of posting this post is not how to use this API, but to know some skills that can improve our work efficiency when looking for documents.
I have a rookie. I hope you don"t hesitate to give me some advice.

Nov.26,2021

ides/migrating.md-sharpon-properties" rel=" nofollow noreferrer "> https://github.com/ReactTrain.

React Router v3 provides onEnter, onUpdate, and onLeave methods. These were essentially recreating React's lifecycle methods.

With v4, you should use the lifecycle methods of the component rendered by a < Route >. Instead of onEnter, you would use componentDidMount. Where you would use onUpdate, you can use componentDidUpdate. OnLeave can be replaced with componentWillUnmount.

React Router v3 provides onEnter,onUpdate and onLeave methods. These are essentially lifecycle approaches to recreating React.
in v4, the lifecycle method of the component rendered by < Route > should be used.
you can use componentDidMount instead of onEnter, use componentDidUpdate instead of onUpdate, use componentWillUnmount instead of onLeave.

< hr >

now most open source projects are on github. If you have any problems, first go to github to find related projects. Watch issue, docs, releases, can find most of the problems encountered, but you can't find them. The best way is to go to github to mention issue, and use google to translate it

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7c28f8-13d05.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7c28f8-13d05.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?