With earlier JavaScript, arrow function callbacks that had a method after the equality sign were used.
var str = "Visit Tirana.";
var res = str.replace("Tirana", "the Rocky Mountains");
In React, setting props is done with the name of the component being the new product. props seems like it should be the variable name. It is hard to understand.
const MyComponent = (props) => {something };
React
const ChildComponent = () => {
return <p>Child 1</p>;