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
ReactTokyo 3/21 LT
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yusuke Kikuta
March 21, 2025
2.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ReactTokyo 3/21 LT
Yusuke Kikuta
March 21, 2025
More Decks by Yusuke Kikuta
See All by Yusuke Kikuta
Zenncafe 1st LT
yusukekikuta0509
0
960
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Site-Speed That Sticks
csswizardry
13
1.5k
Navigating Weather and Climate Data
rabernat
0
520
The agentic SEO stack - context over prompts
schlessera
0
940
How to make the Groovebox
asonas
2
2.4k
GraphQLとの向き合い方2022年版
quramy
50
15k
Google's AI Overviews - The New Search
badams
0
1.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
610
Product Roadmaps are Hard
iamctodd
55
13k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Transcript
create‑tsrouter‑app で実現する次世代 React SPA Vite×TanStack Router の内部構造と実 装
INTRODUCTION Name: YusukeKikuta Job: BlockChain dev / DeFi projectCEO NEW!
Age: 19 SNS: X:@yusuke_05092005
CRAの背景と課題 メンテナンス不足 カスタマイズの困難さ 起動速度の問 題 ⚙
create‑tsrouter‑appにフォーカス CRAの使い勝手を維持しつつ、 内部をViteとTanStack Routerで再構築した 次世代のCRA….!
What is create-tsrouter-app?? 1. Viteベースの高速ビルド 2. TanStack Routerとの統合 3. CLIオプションによる柔軟なカスタマイズ
4. TypeScriptと最新ツールチェーンの統合
Viteベースの高速ビルド • 高速起動と HMR ◦ viteのESモジュール最適化により開発サーバーを高速で構築 • プラグイン統合 ◦ vite.config.tsの中でReactプラグインに加えて
TanStackRouterプラグインを使用して ルートの自動生成とコード分割を実現
TanStack Routerとの統合
個別ページの定義
個別ページの定義
エントリーポイントの自動生成
CLIオプションによる柔軟なカスタマイズ • オプション例 --template, --tailwind, -- package-manager などを指定可能で初期設定の手間の削減に繋がる
TypeScriptと最新ツールチェーンの統合 • 型安全な開発 ◦ TypeScroptをフル活用しているので最新ルールに合わせて最適化されている • Blome連携などが可能 ◦ フォーマッティングやリントツールとの統合オプションも用意されている。
create-viteとの比較 • create-viteテンプレートの場合 ◦ 基本的な ReactAppが作成されるだけ • 実際の使用感 ◦ 最初からルーティングが組み込まれてる分の利便性の高さ
create-viteの場合
まとめ • create-tsrouter-appはViteの高速ビルドと TanStack Routerの柔軟かつ型安全 な最先端の SPAツール • 個人的には create-viteよりもその利便性から開発体験が向上すると感じる
ぜひ皆さんも試してください!