Content deleted Content added
Flaggingwill (talk | contribs) |
|||
Line 74:
In the above example, the name prop with the value "Gulshan" has been passed from the '''Example''' component to the '''Tool''' Component.
Note: In the above example, we can see that in return section it have <DIV> Tag because there are some limitation in return function, It's only return single value that's why we binding all JSX element or component into single <DIV> tag.
The two primary ways of declaring components in React are through function components and class-based components.
|