From 56cea09a36b58507e090070a9d4c56d4ad652bd0 Mon Sep 17 00:00:00 2001 From: JuanMa Date: Mon, 9 Mar 2020 20:41:27 +0100 Subject: [PATCH] docs(render-props): examples improvement suggestion (#987) --- content/docs/render-props.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/docs/render-props.md b/content/docs/render-props.md index 5547437c..e776a7b1 100644 --- a/content/docs/render-props.md +++ b/content/docs/render-props.md @@ -41,7 +41,7 @@ class MouseTracker extends React.Component { render() { return ( -
+

Move the mouse around!

The current mouse position is ({this.state.x}, {this.state.y})

@@ -74,7 +74,7 @@ class Mouse extends React.Component { render() { return ( -
+
{/* ...but how do we render something other than a

? */}

The current mouse position is ({this.state.x}, {this.state.y})

@@ -127,7 +127,7 @@ class MouseWithCat extends React.Component { render() { return ( -
+
{/* We could just swap out the

for a here ... but then @@ -183,7 +183,7 @@ class Mouse extends React.Component { render() { return ( -

+
{/* Instead of providing a static representation of what renders,