摘要: We’ve got a custom useCounter hook here and we want to make sure the increment and decrement functions it returns will update the count state that it 阅读全文
posted @ 2020-05-03 21:27 Zhentiw 阅读(312) 评论(0) 推荐(0)
摘要: Mocking the <Redirect /> component in react-router works, but it’s imperfect because we don’t know for sure that the user will be redirected properly. 阅读全文
posted @ 2020-05-03 00:32 Zhentiw 阅读(991) 评论(0) 推荐(0)