# Function based components ```javascript= // simple component function App() { return ( <div> Hello Function </div> ) } // props simple function App(props) { return ( <div> Hello { props.message } </div> ) } // destructure props function App({ message }) { return ( <div> Hello { message } </div> ) } /* * Empty Object props = {} passing any property like message="World" props = { message: "World" } destructure of props { message } = props inside { message: "World" } * */ ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up