useState is not working inside a customHook

前端 未结 0 489
有刺的猬
有刺的猬 2020-12-30 06:17

I\'m using a custom hook to setup the RadioButtons component.

const useRadioButtons = (data) => {
  const [options, setOptions] = useState(
           


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