type
External Documentation
JSAny get type
The element type (string for DOM elements, function for components)
Implementation
JSAny get type => switch (_['type']) {
final JSAny t => t,
_ => throw StateError('ReactElement missing type'),
};
JSAny get type
The element type (string for DOM elements, function for components)
JSAny get type => switch (_['type']) {
final JSAny t => t,
_ => throw StateError('ReactElement missing type'),
};