MCPcopy Create free account
hub / github.com/coderarmy-notes/mern-stack-course / Main

Function Main

04React/Day02/app.js:105–115  ·  view source on GitHub ↗
({user})

Source from the content-addressed store, hash-verified

103// const {name} = props;
104
105function Main({user}){
106
107 return (
108 <>
109 <h2>Hi {user.name}</h2>
110 <h3>{user.age>18? "Ypur are eligible for vote": "Your are not eligible for vote"}</h3>
111 <p>Your city is {user.city}</p>
112 </>
113
114 )
115}
116
117function Footer(){
118

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected