From c1427a4d0e9d2b62cc0762146fa53603773dff97 Mon Sep 17 00:00:00 2001 From: Jakub Drozdek Date: Mon, 20 Jan 2020 20:23:35 +0100 Subject: [PATCH] Remove part about stateless components --- content/docs/react-without-jsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/react-without-jsx.md b/content/docs/react-without-jsx.md index 85cdba45fa2..95a5ca9678a 100644 --- a/content/docs/react-without-jsx.md +++ b/content/docs/react-without-jsx.md @@ -40,7 +40,7 @@ ReactDOM.render( If you're curious to see more examples of how JSX is converted to JavaScript, you can try out [the online Babel compiler](babel://jsx-simple-example). -The component can either be provided as a string, or as a subclass of `React.Component`, or a plain function for stateless components. +The component can either be provided as a string, as a subclass of `React.Component`, or a plain function. If you get tired of typing `React.createElement` so much, one common pattern is to assign a shorthand: