React Hooks - Update parent component without triggering infinite loop

前端 未结 0 952
清歌不尽
清歌不尽 2020-12-15 21:35

Say I have a parent component, which renders a child component, and all the child does is keep some state and trigger an onChange handler if its own state changes. See the c

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