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
 | 

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