From ff70654ffef901e332ae885778c4a4eacd795c64 Mon Sep 17 00:00:00 2001 From: Thomas Billicsich Date: Thu, 21 Jun 2018 20:16:18 +0200 Subject: [PATCH] Removed redundant dot accesses in example The `current` variable is defined on the top of the method. --- components/steps/demo/step-next.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/steps/demo/step-next.md b/components/steps/demo/step-next.md index 5efc9d7fb6..7c37daefa4 100644 --- a/components/steps/demo/step-next.md +++ b/components/steps/demo/step-next.md @@ -50,20 +50,20 @@ class App extends React.Component { {steps.map(item => )} -
{steps[this.state.current].content}
+
{steps[current].content}
{ - this.state.current < steps.length - 1 + current < steps.length - 1 && } { - this.state.current === steps.length - 1 + current === steps.length - 1 && } { - this.state.current > 0 + current > 0 &&