So hear me out, I feel like there has to be a way, but I am really unsure.
Let's say I have this in my react project
{name ? name : "no name"}
but I am wondering if it were possible to somehow write this short to return the first value if true otherwise return the second value? something like this
{name ! "no name"}
I feel like there has to be a way to do it, I am just curious if anyone knows how?