mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix: improvement in instructions (#50668)
Co-authored-by: Anmol Sarraf <anmolsarraf@Anmols-MacBook-Pro.local>
This commit is contained in:
co-authored by
Anmol Sarraf
parent
ebc9343e8f
commit
614e7b33d5
+1
-1
@@ -28,7 +28,7 @@ When React encounters a custom HTML tag that references another component (a com
|
||||
|
||||
In the code editor, there is a simple functional component called `ChildComponent` and a class component called `ParentComponent`. Compose the two together by rendering the `ChildComponent` within the `ParentComponent`. Make sure to close the `ChildComponent` tag with a forward slash.
|
||||
|
||||
**Note:** `ChildComponent` is defined with an ES6 arrow function because this is a very common practice when using React. However, know that this is just a function. If you aren't familiar with the arrow function syntax, please refer to the JavaScript section.
|
||||
**Note:** `ChildComponent` is defined with an ES6 arrow function because this is a very common practice when using React.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user