This is the example in React's website:
const FancyButton = React.forwardRef((props, ref) => (
<button ref={ref} className="FancyButton">
{props.children}
</button>
));
How can I do the same with function(){}? I want to do this because I want to avoid create an anonymous function to help with debugging.