mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-15 10:04:13 +01:00
10 lines
201 B
Dart
10 lines
201 B
Dart
import 'package:flutter_hooks/flutter_hooks.dart';
|
|
|
|
class Ref<T> {
|
|
T current;
|
|
Ref(this.current);
|
|
}
|
|
|
|
/// see React's useRef
|
|
Ref<T> useRef<T>(T initialValue) => useMemoized(() => Ref(initialValue));
|