Set component name
component.setName(name)
Set the name of the Component Object.
Syntax
Parameters
name
: string - Then name you wish to give your component
Returns
Promise<null>
A promise that resolves to null
once the name has been set.