undefined vs null in React state: Unicorn ESLint plugin no-nulls vs no-useless-undefined

前端 未结 0 411
陌清茗
陌清茗 2021-01-29 23:55

I\'ve added Sindre Sorhus\' unicorn eslint plugin to my TS react project and I\'m stuck with a rule breaking loop when updating state in logic: setSomeState(undefined)

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