你好,我是 react-native 的初学者。 我有个问题 有两种方法可以创建 react-native 应用程序(请从这些图片链接中查看示例)
第一种方法是 I got this method on documentation of react-native
第二种方式是 this method is got from a you tube video
我的问题是这些方法是否相同,或者这两种方法有什么不同。非常感谢您的回复。
答案 0 :(得分:0)
第一种方式是功能组件,第二种方式是类组件。请查看以下链接以获取解释。
what is the different between class component and function component - React Native
或者像“功能组件和类组件之间的区别”