From 42fbdc45a929bd6eb12b0ca3478f177a0552cb50 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Wed, 23 Nov 2022 08:23:16 +0100 Subject: [PATCH] FIX: Correct typos and errors in slides --- .gitignore | 1 + .../decks/JS-Language-Primer/slides/NullishCoalescing.md | 2 +- .../decks/JS-Language-Primer/slides/ObjectDestructuring.md | 6 +++--- presentations/decks/ReactBasics/slides/ReactBasics2.md | 2 +- presentations/decks/ReactBasics/slides/ReactComponents.md | 2 +- .../decks/TS-Language-Primer/slides/TypeScriptWhy.md | 6 +++--- .../slides/FunctionalComponents.md | 2 +- .../functionalComponentsAndHooks/slides/ListRendering.md | 4 ++-- 8 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index eade98b..6467b06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ dist node_modules .vscode +.idea # OSX .DS_Store diff --git a/presentations/decks/JS-Language-Primer/slides/NullishCoalescing.md b/presentations/decks/JS-Language-Primer/slides/NullishCoalescing.md index ec0c2bb..4f0a95e 100644 --- a/presentations/decks/JS-Language-Primer/slides/NullishCoalescing.md +++ b/presentations/decks/JS-Language-Primer/slides/NullishCoalescing.md @@ -2,7 +2,7 @@ -* Similar but safer as || operator +* Similar but safer than || operator ```tsx {all|4-5|7-8|10-12} const _this = undefined diff --git a/presentations/decks/JS-Language-Primer/slides/ObjectDestructuring.md b/presentations/decks/JS-Language-Primer/slides/ObjectDestructuring.md index 763a2f4..72dcc11 100644 --- a/presentations/decks/JS-Language-Primer/slides/ObjectDestructuring.md +++ b/presentations/decks/JS-Language-Primer/slides/ObjectDestructuring.md @@ -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} ``` diff --git a/presentations/decks/ReactBasics/slides/ReactBasics2.md b/presentations/decks/ReactBasics/slides/ReactBasics2.md index 04101c9..e8ad578 100644 --- a/presentations/decks/ReactBasics/slides/ReactBasics2.md +++ b/presentations/decks/ReactBasics/slides/ReactBasics2.md @@ -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 diff --git a/presentations/decks/ReactBasics/slides/ReactComponents.md b/presentations/decks/ReactBasics/slides/ReactComponents.md index 2d90ab3..b4038b7 100644 --- a/presentations/decks/ReactBasics/slides/ReactComponents.md +++ b/presentations/decks/ReactBasics/slides/ReactComponents.md @@ -11,7 +11,7 @@ import React from 'react' const Article = () => (
-

className="title">Title

+

Title

Text

) diff --git a/presentations/decks/TS-Language-Primer/slides/TypeScriptWhy.md b/presentations/decks/TS-Language-Primer/slides/TypeScriptWhy.md index 6942332..1820e34 100644 --- a/presentations/decks/TS-Language-Primer/slides/TypeScriptWhy.md +++ b/presentations/decks/TS-Language-Primer/slides/TypeScriptWhy.md @@ -6,8 +6,8 @@ * 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 diff --git a/presentations/decks/functionalComponentsAndHooks/slides/FunctionalComponents.md b/presentations/decks/functionalComponentsAndHooks/slides/FunctionalComponents.md index 5369bb7..f6b3cba 100644 --- a/presentations/decks/functionalComponentsAndHooks/slides/FunctionalComponents.md +++ b/presentations/decks/functionalComponentsAndHooks/slides/FunctionalComponents.md @@ -2,7 +2,7 @@ -* 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 diff --git a/presentations/decks/functionalComponentsAndHooks/slides/ListRendering.md b/presentations/decks/functionalComponentsAndHooks/slides/ListRendering.md index 11b0dba..5a03984 100644 --- a/presentations/decks/functionalComponentsAndHooks/slides/ListRendering.md +++ b/presentations/decks/functionalComponentsAndHooks/slides/ListRendering.md @@ -19,11 +19,11 @@ type Props = { const Component = ({ users }: Props) => { return ( ) }