I would like to make a generic component. For this I would like to be able to pass optional parameter to the props. I use to make it by using interface in typescript, but this project is in pure react. Is there a way to do something like typescript to make parameters optional ? The way I used to do in typescript is like that
interface buttonProps {
title: string,
color?: string
}