Câu hỏi phỏng vấn React Native
Câu hỏi

What happens if you edit modules with exports that aren't React components in Fast Refresh?

Câu trả lời

In React Native's Fast Refresh, if you edit a module that exports items other than React components, Fast Refresh will re-run both the edited module and any other modules that import it. This means that changes in the non-React component module will propagate to all dependent modules, causing them to re-render as well. This behavior ensures that the application reflects the latest changes accurately but can lead to a broader scope of updates compared to editing a module that only exports React components[2][3][5][10].

Citations:
[1] https://reactnative.dev/blog/2019/09/18/version-0.61
[2] https://reactnative.dev/docs/fast-refresh
[3] https://www.geeksforgeeks.org/what-are-some-features-of-fast-refresh-in-react-native/
[4] https://workiy.com/technologies/react-native/fast-refresh
[5] https://master--react-native.netlify.app/docs/0.61/fast-refresh
[6] https://mariosfakiolas.com/blog/what-the-heck-is-react-fast-refresh/
[7] https://github.com/pmndrs/zustand/...

middle

middle

Gợi ý câu hỏi phỏng vấn

middle

What is AppRegistry? Why is it required early in "require" sequence?

expert

What are the disadvantages of StyleSheet.create?

junior

Tell us some options of storing persisting data in a react native app?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào