platform/packages/jael/jael_web/lib/src/component.dart

16 lines
221 B
Dart
Raw Normal View History

2019-03-23 16:58:43 +00:00
import 'dom_node.dart';
2019-03-23 22:02:57 +00:00
abstract class Component<State> extends DomNode {
2021-06-20 12:37:20 +00:00
late State state;
2019-03-23 16:58:43 +00:00
DomNode render();
void afterMount() {}
void beforeDestroy() {}
void setState(State newState) {
// TODO:
}
}