From 1c539d07c3febc53b4cf266b681d588e8d2729e6 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste LARRIVIERE <76693792+jb-larriviere@users.noreply.github.com> Date: Mon, 8 Feb 2021 08:47:32 +0100 Subject: [PATCH] fix(curriculum): remove mention of null from challenge (#40942) Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> --- .../react/render-conditionally-from-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md b/curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md index 75979d54bc..39a3515bb1 100644 --- a/curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md +++ b/curriculum/challenges/english/03-front-end-libraries/react/render-conditionally-from-props.md @@ -8,7 +8,7 @@ dashedName: render-conditionally-from-props # --description-- -So far, you've seen how to use `if/else`, `&&,` `null` and the ternary operator (`condition ? expressionIfTrue : expressionIfFalse`) to make conditional decisions about what to render and when. However, there's one important topic left to discuss that lets you combine any or all of these concepts with another powerful React feature: props. Using props to conditionally render code is very common with React developers — that is, they use the value of a given prop to automatically make decisions about what to render. +So far, you've seen how to use `if/else`, `&&`, and the ternary operator (`condition ? expressionIfTrue : expressionIfFalse`) to make conditional decisions about what to render and when. However, there's one important topic left to discuss that lets you combine any or all of these concepts with another powerful React feature: props. Using props to conditionally render code is very common with React developers — that is, they use the value of a given prop to automatically make decisions about what to render. In this challenge, you'll set up a child component to make rendering decisions based on props. You'll also use the ternary operator, but you can see how several of the other concepts that were covered in the last few challenges might be just as useful in this context.