参考:https://www.xiabingbao.com/post/react/self-react-hooks.html
https://blog.csdn.net/lovezhuer1/article/details/112624977