What does the "Enable Fast Refresh" option do in React Native?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "It allows for near-instant feedback for code changes.". Fast Refresh là tính năng của React Native (bật mặc định từ bản 0.61): khi lưu tệp, nó chỉ nạp lại module vừa sửa và render lại các component liên quan, đồng thời cố giữ state của function component, nên kết quả hiện ra gần như ngay lập tức. "It disables hot reloading." sai vì Fast Refresh thay thế và hợp nhất Hot Reloading với Live Reloading cũ, bật nó không nhằm tắt tính năng nào. "It enables network request monitoring." là việc của công cụ gỡ lỗi như trình xem mạng của DevTools hay Flipper. "It provides performance metrics." là việc của Perf Monitor hoặc Profiler, không phải Fast Refresh.
Cùng chương 1
Ordering steps in the process of how React Native works in Bridge architecture:
1.The main cable starts working and starts loading JavaScript loads
2.Produces a new DOM (structure) and sends changes to Shadow cable
3.If the JavaScript code is successfully uploaded, the main thread sends it to another JavaScript thread
4.Main thread is able to render something on the screen
5.The shadow string calculates the structure and sends the parameters/properties of the structure to the main sequenceCó lời giảiCâu hỏiReact Native uses the following tech stack to build cross-platform native apps:Có lời giảiCâu hỏiHow does React Native differ from React.js in terms of rendering components?Có lời giảiCâu hỏiCả 54 câu của chủ đề54 câu