Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to pass props in react

const Header = (props) => {
    return (
        <header>
            <h1>{props.title}</h1>
        </header>
    )
}

export default Header
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #pass #props #react
ADD COMMENT
Topic
Name
4+7 =