init
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { useContext } from 'react';
|
||||
import { TodoContext } from './TodoContext';
|
||||
import type { TodoStoreValue } from './TodoContext';
|
||||
|
||||
export function useTodoList(): TodoStoreValue {
|
||||
return useContext(TodoContext);
|
||||
}
|
||||
Reference in New Issue
Block a user