0

Can we pass an exact props name to a function as an string without making it a string?

For example:
function myFunction(prop1){
     myFunction1("prop1");
}

Is there any way we can pass prop1 as a string without making it as string??

0 Answers0