Why a custom hook? When using the React.useContext hook, you need to know which context instance to pull in anytime you want to setup a consumer ...
確定! 回上一頁