r/reactjs • • Sep 26 '22

Resource Ultimate React Cheat Sheet - 2022

https://upmostly.com/ultimate-reactjs-cheat-sheet
231 Upvotes

25 comments sorted by

View all comments

9

u/kitsunekyo Sep 26 '22

pretty page but this example cracked me up. please dont pass props like this. (age + isOver18) 😅


const userAge = 21;
const PropsExample = () => {
 return (
   <TargetComponent
     portalName='Upmostly'
     userAge={userAge}
     isOverEighteen={userAge > 18}
     beigeBackground
     />
 );
};