Menu

4/11/26 in paiyalagam (props in react)
📰

4/11/26 in paiyalagam (props in react)

DEV Community: react·Harish raj·about 8 hours ago
#noXslCCE
#devtoreact#devto#dev#function#child
Reading 0:00
15s threshold

Harish raj

syntax :
import parent
function parent (){
let amount =10000; ------------->send
return(

parent { childmat={amount}/>

import child
function child (props){
console.log(props.amt)
return(

child{props.amt}
---------------->receive

)
}
export default child

          |

Enter fullscreen mode Exit fullscreen mode

return ( V
object more than one value is object so use {{value}} in expection function . send the function file to file

child {{amount.setamount}}.
|
V
expreaction function