Is it possible that React modifies a reference?

前端 未结 0 677
刺人心
刺人心 2021-01-28 01:28

I made a small experiment with implementing an observer pattern manually in React (*). It basically works, but with a highly unexpected detail. Consider this minimal example:

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