Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Tjejer Kodar Intro to JavaScript and React
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Damien Timewell
October 24, 2015
Programming
350
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Tjejer Kodar Intro to JavaScript and React
Damien Timewell
October 24, 2015
Other Decks in Programming
See All in Programming
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Event is what happens
moro
2
770
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
300
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
410
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
640
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
AmebaブログはKMPから卒業します
kmars0605
0
190
Featured
See All Featured
Accessibility Awareness
sabderemane
1
250
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Marketing to machines
jonoalderson
1
5.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Transcript
Tjejer Kodar October 2015
01 02 03 04 In the beginning JavaScript React Planning
our app
Scientists made the web But we users made it what
it is today.
1991 1993 1995 1996 1998 2000 2005 2008 HTML 1.0
First Browser “Mosaic” Browser JavaScript 1.0 Internet Explorer CSS 1.0 HTML 4.0 JavaScript 2.0 AJAX JS Frameworks HTML 5 Node.js
So what is JavaScript?
Browser Server
The DOM
CSS
JavaScript
Frameworks jQuery MooTools Sprout Sprout React Prototype Cappuccino JavaScriptMVC BackboneJS
Spine Angular ExtJS Knockout PureMVC Dojo Polymer Brick NuclearJS
01 02 03 04 In the beginning JavaScript React Planning
our app
repl.it/languages/javascript We’ll use this to experiment with JavaScript
var fruit = "Pear"; Variables
/* The fruit variable holds the name of the current
fruit. */ var fruit = "ananas"; // But it's really a pineapple Comments
Numbers var numberOfFruits = 2; var cupsOfOrangeJuicePerOrange = 0.3;
Strings var fruit = "Apple"; fruit.length;
Booleans var isRipe = true; var isSour = false;
var isSour = true; if (isSour) { // A sour
fruit, possibly a lemon } else { // A non-sour fruit }
JS Exercise 1
Arrays var fruits = [ "Orange", "Banana", "Apple" ];
Objects var fruit = { name: "Lemon", isSour: true, numberOfSeeds:
3 };
Functions function squash(fruit) { return fruit + " juice"; }
var juice = squash("Orange");
this var fruit = { name: "Plum", squash: function() {
return this.name + " juice"; } }; fruit.squash();
JS Exercise 2
01 02 03 04 In the beginning JavaScript React Planning
our app
What is React?
UI Library var product = { name: "Lemon", image: "lemon.jpg"
}; Lemon ADD TO BASKET
A React Component var Product = React.createClass({ render: function() {
return ( <div> <img src={this.props.image}/> <strong>{this.props.name}</strong> <a href="">ADD TO BASKET</a> </div> ); } });
JSX <h1>Orange</h1>
JSX var fruit = "Orange"; <h1>{fruit}</h1>
JSX function squash(fruit) { return fruit + " juice"; }
<h1>{squash("Orange")}</h1>
The Web Inspector Duh duh duh duh duh inspector gadget.
Components
01 02 03 04 In the beginning JavaScript React Planning
our app
THE PLAN: Build a Todo app where you can: •
See your completed and uncompleted todo items. • Create a new item. • Mark an item as complete. • Remove an item. • Save items in the browser’s localStorage.
Modelling our app
izettle.com/tjejer-kodar