Answers for "can we use this.props in functional component"

C
0

function component with props

import React from "react"

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

export default Checkbox
Posted by: Guest on April-13-2021

Code answers related to "can we use this.props in functional component"

Code answers related to "C"

Browse Popular Code Answers by Language