Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

function component with props

import React from "react"

function Checkbox(props){
    return (
        <div>
            <input type="checkbox" />
            <label>{props.value}</label>
        </div>
    )
}

export default Checkbox
 
PREVIOUS NEXT
Tagged: #function #component #props
ADD COMMENT
Topic
Name
6+5 =