react check if var is jsx code example Example: how to check if the const is jsx var x = "a" console.log(typeof x)