Created
April 11, 2017 08:36
-
-
Save shafiqshams/2d7609a0dba7097a0612017bf546b5ba to your computer and use it in GitHub Desktop.
BoilerPlate for functional ReactNative component.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Text, View } from 'react-native'; | |
const AlbumList = () => ( | |
<View> | |
<Text> AlbumList </Text> | |
</View> | |
); | |
export default AlbumList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Functional component is they must return some amount of jsx,
Used for presenting static data.
Functionality is limited.
Put data in one end and JSX comes out on the other.
NO Fetching or other heavy task.
Data goes in -> JSX comes out. Thats IT!
const Header = () =>{
return HelloWorld
}