From 4367566bddd06ed9dfbd6b1c3f45f9925e60b2c3 Mon Sep 17 00:00:00 2001 From: Jakub Drozdek <30927218+jakubdrozdek@users.noreply.github.com> Date: Mon, 10 Feb 2020 00:41:06 +0100 Subject: [PATCH] Remove part about stateless components (#2694) --- 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 85cdba45..95a5ca96 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: