React reusable function that sets useContext

前端 未结 0 516
感情败类
感情败类 2021-01-30 01:12

My current function handleLogin() takes care of calling to an API that sets the state of loggedIn to true inside the then() block like so.

function handleLogin()          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题