1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【React】同じファイルでuseContextとProviderを使った時に ESLint: Fast refresh only works when a file only exports components. Move your React context(s) to a separate file. (react-refresh/only-export-components)

1
Posted at

はじめに

  • eslintのエラーに対する対応

問題

  • eslintの警告が出ている。実際に何が問題になるのかまでは調べられていない

解決

  • ファイルを分けたらeslintエラーは出なくなった

終わりに

  • 実際にどういったデメリットがあるのか実験したい

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?