fixed typos (#33529)
This commit is contained in:
@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
title: Compose React Components
|
title: Compose React Components
|
||||||
---
|
---
|
||||||
## Compose React Components
|
# Compose React Components
|
||||||
|
|
||||||
### Hint
|
## Hint
|
||||||
|
|
||||||
Use nested components as in the previous challemge to render components.
|
Use nested components as in the previous challenge to render components.
|
||||||
|
|
||||||
### Solution
|
## Solution
|
||||||
|
|
||||||
The following is the solution to the chakkenge, where it render Citrus and NonCitrus in a component which is then rendered in another:
|
The following is the solution to the challenge, where it render `Citrus` and `NonCitrus` in a component which is then rendered in another:
|
||||||
```jsx
|
```jsx
|
||||||
class Fruits extends React.Component {
|
class Fruits extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
Reference in New Issue
Block a user