Why setState does not change value?

后端 未结 0 1997
旧巷少年郎
旧巷少年郎 2020-12-18 05:45

Why is below code not working? It returns false even when I set inverted to true; it also logs hit so it does reach.

import React, { useEffect, useState } fro         


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