Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
May the public methods other than property getters/setters and lifecycle methods be called for a component in
this state? It returns true for any component in any of the following states: