From 31780ccf9deacc897edae8791faaea6e929fc674 Mon Sep 17 00:00:00 2001 From: Samarth Agarwal Date: Sat, 16 Feb 2019 18:51:24 -0500 Subject: Added comments to the code in App.js so that you can understand what it's doing. --- App.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'App.js') diff --git a/App.js b/App.js index 80a780e..7271bc2 100644 --- a/App.js +++ b/App.js @@ -2,8 +2,13 @@ import React, { Component } from 'react'; import { Text, View } from 'react-native'; export default class HelloWorldApp extends Component { + //Every component needs a render() function render() { return ( + // acts like the way
does in JavaScript + //style={...} stores properties about where you want the component to be placed + //and how you want it to look. It's similar to adding CSS styles to HTML elements + //when creating web pages Hello world! -- cgit v1.2.3