skip to Main Content

Reactjs – Ways to display react components

Is it okay to display jsx like the following? //writing a js function to return `jsx` function child(label, value){ return ( <h3> {label}: {value} </h3> ) } export default function Parent(){ const [state, setState] = useState({label:"", value:""}) const {label, value}…

VIEW QUESTION
Back To Top
Search