Dan Abramov
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
examples/context/multiple-contexts.js
|
@ -2,7 +2,9 @@ |
|
|
const ThemeContext = React.createContext('light'); |
|
|
const ThemeContext = React.createContext('light'); |
|
|
|
|
|
|
|
|
// Signed-in user context
|
|
|
// Signed-in user context
|
|
|
const UserContext = React.createContext(); |
|
|
const UserContext = React.createContext({ |
|
|
|
|
|
name: 'Guest' |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
class App extends React.Component { |
|
|
class App extends React.Component { |
|
|
render() { |
|
|
render() { |
|
|