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
僕が求めていたのはNext.jsだったんだ
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Matsuo Obu
April 24, 2019
Technology
720
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
僕が求めていたのはNext.jsだったんだ
Next.jsは素晴らしいという話。React LT会 @Informetis (2019-04-24) で発表。
Matsuo Obu
April 24, 2019
More Decks by Matsuo Obu
See All by Matsuo Obu
Reactの歴史
mqtsuo02
0
1.1k
文学作品「檸檬」をReactで読む
mqtsuo02
1
520
EmotionでReactをstylingすればモテるかもしれない
mqtsuo02
0
650
Repro Tech Hands-on : Nuxt.js
mqtsuo02
1
960
ピピピのPWA
mqtsuo02
0
780
GraphQLについての5分間
mqtsuo02
0
840
Create React App 読解特急
mqtsuo02
0
130
JekyllとBootstrapを使って静的なブログを作ってみたよ
mqtsuo02
0
110
Other Decks in Technology
See All in Technology
Refining Active Record
shugo
0
140
Running Kotlin + Quarkus with Lambda
nealle
1
3.3k
パッチ更新でterraform initが落ちた日
grimoh
1
140
大型犬好きによるPugの紹介
yamanoku
1
150
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
go-sqletch
moznion
0
140
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
190
Classmethod Company Deck
satoshi7
1
570
Getting Started with Google Antigravity
glaforge
0
280
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
130
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
190
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
510
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
We Have a Design System, Now What?
morganepeng
55
8.4k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Discover your Explorer Soul
emna__ayadi
2
1.3k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Prompt Engineering for Job Search
mfonobong
0
510
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Transcript
@mqtsuo02 2019-04-24 React LT会 僕が求めていたのは Next.js だったんだ
自己紹介 + React歴 - フリーランスのWebエンジニア - 直近2年間はずっとReact関連 - ReactのSPA3本、ReactNative1本 -
色んな構成でやった - redux, redux-saga, ContextAPI - Flow, TypeScript - styled-components, CSS Modules, inline style - create-react-app, storybook, jest, enzyme - Vue.js (Nuxt.js)とかGolangもやってます
ユーザ投稿型のメディアを作りたくなった。 (仕組みとしてはnote.muみたいなもの) 最近のはなし
Firebase HostingにReactのSPAおけばいいかな... と思いつつも 将来のことが色々不安になってきた。 最近のはなし
SEO的なものは大丈夫なんだろうか? GoogleはSPAでもクロールするって言ってるけど OGPとかは大丈夫なんだろうか? react-helmetで実装してるけど、読んでくれるのかな? 将来の不安 その1
First Viewのパフォーマンス大丈夫かな? メディアだから待たせたくない! PHPとかRubyのSSRに負けてしまうんじゃないだろうか 負けたくねぇよぉ... 将来の不安 その2
Laravel 勉強したほうがいいんじゃね? GAE/Golangでサーバ立ててテンプレートでなんとかする? 最近JAMStack流行ってきてるのかな? SPAに限界感じる。もう何もかも嫌だ。 結果、開発放置気味に... 不安が生んだ迷いと現実逃避
3ヶ月後
Next.jsの母 (ZEIT) 来日
最新のNext.jsはAMPにも対応できる Serverless pre renderingでめちゃ速い 差分だけビルドできる 湧き上がる会場 Next.jsそんなにええんか!? ZEITのLT
First ViewはSSRで、その後はSPAで ユニバーサルなJavaScript モジュールを分割して段階的に読み込める とにかく速さを売りにしていることがワカッタ! Next.js 再入門してみた
Express + Next.js + React これがユニバーサルJavaScriptか!! めっちゃいいやん!! Next.js の SSR+SPAチュートリアルやってみた
server.js require(“express”); require(“next”); ... pages/index.js Index.getInitialProps = async () => { … return {key: value}; }; package.json “build”: “next build”, “start”: “node server.js”, ... next build して server.js実行する感じ nextを初期化して express書いていく感じ いつもの要領でJSX書く getInitialPropsでデータ取得
SPAとSSR組み合わせるの辛いって誰か言ってた ReactでSSRするのって本質的じゃなくない? 投資対効果低そう.... Before
Next.js 最高!!! ZEIT 神!! 一生ついていきます!! After
Front End (GAE) node10 Express + Next.jsで SSR + SPA
ぼくが考えた さいつよ の構成 ユーザ認証 (Firebase Auth) Back End (Cloud Functions or GAE) Golang or node DB (Cloud DataStore) Storage (Cloud Storage) SSR + SPA、オートスケーリング、たぶん完璧!!
ReactやってるならNext.jsもやった方がいい 公式ページみると感動するよ Next.js 最高!!! ZEIT 神!!! あと、Reactのお仕事ください! このLTで伝えたかったこと
E N D