mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding step 2.4 and 2.5 exercises
This commit is contained in:
4
step2-04/exercise/src/TodoContext.ts
Normal file
4
step2-04/exercise/src/TodoContext.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import React from 'react';
|
||||
|
||||
// The typing forces us to put something inside createContext(); start with undefined
|
||||
export const TodoContext = React.createContext(undefined);
|
||||
Reference in New Issue
Block a user