Basic Syntax
These two are equivalent
const logHelloWorld = () => {
console.log("Hello World");
}function logHelloWorld() {
console.log("Hello World");
}These two are equivalent
const App = () => {
return (
<View>
<Text>This is an app</Text>
</View>
);
}These two are equivalent
These three are equivalent
Last updated