What are some features of Fast Refresh?

Technology CommunityCategory: React NativeWhat are some features of Fast Refresh?
VietMX Staff asked 3 years ago
  • Fast Refresh preserves React local state in function components (and Hooks) by default.
  • Fast Refresh always remounts class components without preserving state. This ensures it works reliably.
  • Fast Refresh automatically retries rendering after a file is saved.
  • // @refresh reset comment can be used to reset the React state on every edit.