Skip to content

Instantly share code, notes, and snippets.

@shafiqshams
Created April 11, 2017 08:36
Show Gist options
  • Save shafiqshams/2d7609a0dba7097a0612017bf546b5ba to your computer and use it in GitHub Desktop.
Save shafiqshams/2d7609a0dba7097a0612017bf546b5ba to your computer and use it in GitHub Desktop.
BoilerPlate for functional ReactNative component.
import React from 'react';
import { Text, View } from 'react-native';
const AlbumList = () => (
<View>
<Text> AlbumList </Text>
</View>
);
export default AlbumList;
@shafiqshams
Copy link
Author

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment