Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Correct typos and errors in slides #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dist
node_modules
.vscode
.idea

# OSX
.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<v-clicks>

* Similar but safer as || operator
* Similar but safer than || operator

```tsx {all|4-5|7-8|10-12}
const _this = undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const obj = {
},
}

const {a, d} = obj
const {a, hero} = obj
console.log(a === obj.a) // ?
console.log(d === obj.d) // ?
console.log(hero === obj.hero) // ?

// get the "rest" of the object as shallow copy
const {b, d, ...rest} = obj
const {b, hero, ...rest} = obj
console.log(b) // => 2
console.log(rest) // => {a: 1, c: 3}
```
Expand Down
2 changes: 1 addition & 1 deletion presentations/decks/ReactBasics/slides/ReactBasics2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* a library for view rendering
* was open-sourced by Facebook in 2013
* has a small API
* is easy reason about due to it's "one way" data flow
* is easy to reason about due to it's "one way" data flow
* efficiently updates and renders the view once data changes
* has bindings for the Browser, static HTML and Native
* has a huge community & rich ecosystem
Expand Down
2 changes: 1 addition & 1 deletion presentations/decks/ReactBasics/slides/ReactComponents.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import React from 'react'

const Article = () => (
<article className="article">
<h2> className="title">Title</h2>
<h2 className="title">Title</h2>
<p className="text">Text</p>
</article>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<v-clicks>

* describe the shape of your data and transformation
* provide better documentatio
* lower cognitive overhead significantl
* write code with more confidenc
* provide better documentation
* lower cognitive overhead significant
* write code with more confidence

</v-clicks>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<v-clicks>

* JS-functions which accpet props as arguments and return JSX
* JS-functions which accept props as arguments and return JSX
* Return is equivalent to `render()` method in classes

</v-clicks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ type Props = {
const Component = ({ users }: Props) => {
return (
<ul>
users.map(user => (
{users.map(user => (
<li key={user.id}>
{user.name}
</li>
))
))}
</ul>
)
}
Expand Down