From 5e2089d73a11947c276f1894322508bee14ef037 Mon Sep 17 00:00:00 2001 From: mshwed Date: Tue, 2 Apr 2019 11:56:06 -0400 Subject: [PATCH] Fixed grammar mistake --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03c034de..5b4bb314 100644 --- a/README.md +++ b/README.md @@ -381,14 +381,14 @@
Login
``` - Whereas a **component** can be declared in several different ways. It can be a class with a `render()` method. Alternatively, in simple cases, it can be defined as a function. In either case, it takes props as an input, and returns an JSX tree as the output: + Whereas a **component** can be declared in several different ways. It can be a class with a `render()` method. Alternatively, in simple cases, it can be defined as a function. In either case, it takes props as an input, and returns a JSX tree as the output: ```javascript const Button = ({ onLogin }) =>
``` - Then JSX gets transpiled to `React.createElement()` function tree: + Then JSX gets transpiled to a `React.createElement()` function tree: ```javascript const Button = ({ onLogin }) => React.createElement(