useContext : should I always call the dispatch function to update a variable?

后端 未结 0 377
盖世英雄少女心
盖世英雄少女心 2021-01-14 08:32

I\'m learning React and just found out about useContext.

  const [playlist, setPlaylist] = useContext(PlaylistContext);

I was wondering if it

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