Skip to content

Commit b9d146c

Browse files
committed
fix deploy error
1 parent 4686dad commit b9d146c

File tree

4 files changed

+2174
-2042
lines changed

4 files changed

+2174
-2042
lines changed

.yarn/install-state.gz

1.18 MB
Binary file not shown.

docs/01-this.mdx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,25 @@ import arrowFunctionExample2 from "!!raw-loader!./_scripts/01-this-arrow-functio
1616
import arrowFunctionExample3 from "!!raw-loader!./_scripts/01-this-arrow-function-03.js";
1717
import classExample1 from "!!raw-loader!./_scripts/01-this-class-01.js";
1818

19-
Useful resources:
20-
21-
- [Stack overflow](https://stackoverflow.com/a/3127440)
22-
- [You Don't Know JS: this & Object Prototypes - 1st Edition (ch1 ~ ch2)](https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/this%20&%20object%20prototypes/README.md#you-dont-know-js-this--object-prototypes)
23-
2419
## What is `this` ?
2520

2621
> `this` is a binding that is made when a function is invoked, what it references is determined by entirely by the **[call-site](#call-site)** where the function is called.
2722
> When a function is invoked, an **execution context** is created which contains the following information:
2823
29-
[Execution context](/todos)
3024

31-
- Where the function was called from (the [call stack](/todos))
25+
- Where the function was called from (the [call stack](#))
3226
- How the function was invoked
3327
- What parameters were passed
3428
- `this`
3529

3630
![execution context](./_assets/this-execution-context.png)
3731

38-
One of the most important properties of [execution context](/todos) is the `this` reference that will be used for the duration of that function call.
32+
One of the most important properties of [execution context](#) is the `this` reference that will be used for the duration of that function call.
3933

4034
## How to determine call-site ? {#call-site}
4135

4236
[call-site](#call-site): The location in code where a function is called (not where it's declared).
4337

44-
Because [call stack](/todos) is a stack of functions that have been called to get us to the current moment of execution. The call-site of a function is in the invocation _before_ the currently executing function. In other words, it is the second item from the top of [call stack](/todos). see the the image below
45-
4638
<JSEditor title="call-site explanation" run={false}>
4739
{firstExample}
4840
</JSEditor>
@@ -90,8 +82,6 @@ In this example, `foo()` is called with a _plain, un-decorated function referenc
9082

9183
#### Strict Mode Behavior
9284

93-
In [strict mode](/todos), the global object is not eligible for the _default binding_. That means `this` will be set to `undefined`.
94-
9585
```js title='"use strict" in function definition (contents)' {2,8}
9686
function foo() {
9787
"use strict";

src/components/HomepageFeatures.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ const FeatureList = [
1616
),
1717
},
1818
{
19-
title: "University Notes",
19+
title: "Notes",
2020
Svg: require("../../static/img/undraw_docusaurus_tree.svg").default,
2121
description: (
2222
<>
2323
The notes collected while studying at{" "}
24-
<Link to="/university">university</Link>.
24+
<Link to="#">Notes</Link>.
2525
</>
2626
),
2727
},
@@ -30,7 +30,7 @@ const FeatureList = [
3030
Svg: require("../../static/img/undraw_docusaurus_react.svg").default,
3131
description: (
3232
<>
33-
A list of <Link to="/showcase">projects</Link> that I am/was working on.
33+
A list of <Link to="#">projects</Link> that I am/was working on.
3434
</>
3535
),
3636
},

0 commit comments

Comments
 (0)