Tuesday, November 1, 2022

18/365: React Children

 In React, the content between an opening and closing tag is passed as a unique prop called children. For example when rendering <MyComponent> Hello World ! </MyComponent> , the text "Hello World!" is passed as children to the component. The children can be simple text passed as a string, JavaScript expressions, more complex functions, or other JSX components. I look forward to learning more aobut children in React tomorrow. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...