fix(curriculum): add empty space to code example Toggle Text - step 13 (#62604)

This commit is contained in:
Diem-Trang Pham
2025-10-08 12:30:37 -05:00
committed by GitHub
parent dd43d97924
commit 4a1d743044
@@ -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`.