From a22526d17f0dfe21563b4683e4bf51d9bcb6538a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dante=20Calder=C3=B3n?= Date: Fri, 8 Mar 2019 17:08:26 -0500 Subject: [PATCH] Fix error in the markdown (#34990) Fix error in the markdown closing the code fragment. --- .../react/use--for-a-more-concise-conditional/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guide/english/certifications/front-end-libraries/react/use--for-a-more-concise-conditional/index.md b/guide/english/certifications/front-end-libraries/react/use--for-a-more-concise-conditional/index.md index 2ce34c036d..b221889061 100644 --- a/guide/english/certifications/front-end-libraries/react/use--for-a-more-concise-conditional/index.md +++ b/guide/english/certifications/front-end-libraries/react/use--for-a-more-concise-conditional/index.md @@ -3,13 +3,13 @@ title: Use && for a More Concise Conditional --- ## Use && for a More Concise Conditional The example given is -``` +```jsx {condition &&

markup

} ``` which is demonstrated below using the condition of the this.state.dinnerCooked boolean. If the boolean is true the markup included in the {} with the condition will display, if not it will not display -``` +```jsx class MyComponent extends React.Component { constructor(props) { super(props); @@ -25,6 +25,7 @@ class MyComponent extends React.Component { ); } }; +``` ## Hint: