How can react tell if element is a component?

I have two component:User,Admin. Now, after I call const user= < User/ >, how can I tell whether user is an instance of User or Admin


through the following code

user.type.name
Menu