mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-07-13 15:28:32 +08:00
context demo works
This commit is contained in:
@@ -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