mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add empty space to code example Toggle Text - step 13 (#62604)
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ Earlier, you reviewed how to work with inline conditional rendering. You are goi
|
||||
Here is an example of using the ternary operator to conditionally show the words `Hide` and `Show`:
|
||||
|
||||
```jsx
|
||||
<button>{isMenuVisible? "Hide" : "Show"} Menu</button>
|
||||
<button>{isMenuVisible ? "Hide" : "Show"} Menu</button>
|
||||
```
|
||||
|
||||
For the last step of the workshop, use the ternary operator to conditionally display the words `Hide` or `Show` for the message button. Place the condition before the `Message` text so it displays `Show Message` or `Hide Message`.
|
||||
|
||||
Reference in New Issue
Block a user