context demo works

This commit is contained in:
Ken
2019-03-02 21:23:22 -08:00
parent b91914e1d8
commit 4be1dcdae9
13 changed files with 326 additions and 20 deletions
+4
View 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);