Skip to content

Commit 4758233

Browse files
committed
Fixed 53
1 parent 47a7581 commit 4758233

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/07-types-deep-dive/53-understand-react-namespace-export.problem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import React from "react";
2+
13
/**
24
* Questions to answer:
35
*/
46

57
// 1. What is the React namespace?
6-
// 1a. Why can it be accessed globally as a type?
78
type Example = React.ReactNode;
89
// ^?
910

1011
/**
11-
* 2a. Most namespaces can't be used as values. So how come
12-
* we can use React as a value here?
12+
* 2. How come React can be used BOTH as a value and a type?
1313
*
1414
* HINT - we're adding LOTS of things to React's namespace in
1515
* later exercises, so make sure when you go-to-definition you

src/07-types-deep-dive/53-understand-react-namespace-export.solution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
import React from "react";
2+
13
/**
24
* Questions to answer:
35
*/
46

57
// 1. What is the React namespace?
6-
// 1a. Why can it be accessed globally as a type?
78
type Example = React.ReactNode;
89
// ^?
910

1011
/**
11-
* 2a. Most namespaces can't be used as values. So how come
12-
* we can use React as a value here?
12+
* 2. How come React can be used BOTH as a value and a type?
1313
*
1414
* HINT - we're adding LOTS of things to React's namespace in
1515
* later exercises, so make sure when you go-to-definition you

0 commit comments

Comments
 (0)