mirror of
https://github.com/bendtherules/react-hooks-with-class.git
synced 2026-08-18 13:53:06 +00:00
Add TODO to make superclass with hooks functionalities
This commit is contained in:
@@ -35,6 +35,7 @@ export default class App extends Component {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Make superclass out of this mocked functions
|
||||||
useEffect(asyncFn, dependencyArrayFnOptional = undefined) {
|
useEffect(asyncFn, dependencyArrayFnOptional = undefined) {
|
||||||
this._internal.effects.push({
|
this._internal.effects.push({
|
||||||
asyncFn,
|
asyncFn,
|
||||||
|
|||||||
Reference in New Issue
Block a user