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
JS@PayPal - Specialization with Dynamic React F...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Bruno Sanches
September 23, 2016
Programming
120
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JS@PayPal - Specialization with Dynamic React Forms
Bruno Sanches
September 23, 2016
Transcript
61 slides
Specialization with dynamic React forms
@brunopsanches Bruno Sanches
Scaling merchant onboarding Lessons and updates Usability tests Current status
Scaling merchant onboarding Lessons and updates Usability tests Current status
page1.dust email.dust email.js email.css name.dust name.js name.css address.dust address.js address.css
page1.js page1.css
Flow
Default flow Team 1 Group flow 1 Flow 1.1 Flow
1.2 Team 2 Group flow 2 Flow 2.1 Flow 2.2 Team 3 Flow 3 Team 4 Flow 4
Scaling merchant onboarding Lessons and updates Usability tests Current status
Rewrite
Rewrite Client && Server side
Rewrite Client && Server side F0 && Named Hooks
Rewrite Client && Server side F0 && Named Hooks React
forms && Specialization
React forms
Minimize client side code Flexibility++ Built for open source
None
None
None
None
None
None
None
None
Okay, that’s a lot of
None
"email": { "component": "TextInput", "validations": [ "required", "emailCheck" ], "attributes":
{ "title": "email.title", "placeholder": "email.placeholder", "name": "email" }, "wrapperAttributes": { "className": "col-md-12" } }
"email": { "component": "TextInput", "validations": [ "required", "emailCheck" ], "attributes":
{ "title": "email.title", "placeholder": "email.placeholder", "name": "email" }, "wrapperAttributes": { "className": "col-md-12" } }
"email": { "component": "TextInput", "validations": [ "required", "emailCheck" ], "attributes":
{ "title": "email.title", "placeholder": "email.placeholder", "name": "email" }, "wrapperAttributes": { "className": "col-md-12" } }
"email": { "component": "TextInput", "validations": [ "required", "emailCheck" ], "attributes":
{ "title": "email.title", "placeholder": "email.placeholder", "name": "email" }, "wrapperAttributes": { "className": "col-md-12" } }
"email": { "component": "TextInput", "validations": [ "required", "emailCheck" ], "attributes":
{ "title": "email.title", "placeholder": "email.placeholder", "name": "email" }, "wrapperAttributes": { "className": "col-md-12" } }
None
None
Rewrite Client && Server side F0 && Named Hooks React
forms && Specialization
Specialization On the server side Eliminate if (country === 'US')
statements
if (country === 'US') { }
if (country === 'US') { if (product === 'product1') {
} }
if (country === 'US') { if (product === 'product1') {
} else if (product === 'product2') { } }
if (country === 'US') { if (product === 'product1') {
} else if (product === 'product2') { } } else if (group === 'EU') { }
if (country === 'US') { if (product === 'product1') {
} else if (product === 'product2') { } } else if (group === 'EU') { if (country === 'GB') { } }
if (country === 'US') { if (product === 'product1') {
} else if (product === 'product2') { } } else if (group === 'EU') { if (country === 'GB') { if (product === 'product1') { } } }
if (country === 'US') { if (product === 'product1') {
} else if (product === 'product2') { } } else if (group === 'EU') { if (country === 'GB') { if (product === 'product1') { if (experiment === 'exp1') { } } } }
None
None
Named Hooks to the rescue Isolates business logic
Named Hooks to the rescue Isolates business logic Open source
module https://github.com/brunops/named-hooks
Demo
1. Load base form 2. Resolve abstractions 3. Call hooks
4. Render
[ 'hookName', 'hookName_Group', 'hookName_Prod', 'hookName_Country', 'hookName_Country_Prod', 'hookName_Exp', 'hookName_Country_Exp', 'hookName_Country_Prod_Exp' ]
[ 'preRenderForm', 'preRenderForm_Group', 'preRenderForm_Prod', 'preRenderForm_Country', 'preRenderForm_Country_Prod', 'preRenderForm_Exp', 'preRenderForm_Country_Exp', 'preRenderForm_Country_Prod_Exp' ]
[ 'preRenderForm', 'preRenderForm_EU', 'preRenderForm_prod', 'preRenderForm_GB', 'preRenderForm_GB_prod', 'preRenderForm_exp', 'preRenderForm_GB_exp', 'preRenderForm_GB_prod_exp' ]
Scaling merchant onboarding Lessons and updates Usability tests Current status
Usability tests - Objective Tested with developers
Usability tests - Objective Tested with developers Configuration driven forms
Usability tests - Objective Tested with developers Configuration driven forms
Documentation discovery
Usability tests - Setup Script
Usability tests - Setup Script 1. Create a form with
text fields 2. Add a dropdown 3. Configure validations 4. Abstract fields 5. Create new page
Usability tests - Setup Script Six developers
Usability tests - Setup Script Six developers 30 minutes each
:(
Scaling merchant onboarding Lessons and updates Usability tests Current status
Current status 4 teams currently working with F0 Working towards
open sourcing https://github.paypal.com/f0/f0/issues
@brunopsanches Thank you
Other Decks in Programming
See All in Programming
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
340
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
700
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
140
ruby/uri meets WHATWG
jinroq
0
180
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
130
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
120
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
150
Crash Auto Pipelines
veronikapj
1
460
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
270
SODA - FACT BOOK(JP)
sodainc
1
40k
AIコーディングをセッションで終わらせない: PHPライブラリ開発におけるコンテキスト承継設計
ickx
0
110
Featured
See All Featured
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
400
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
WCS-LA-2024
lcolladotor
0
1k
We Have a Design System, Now What?
morganepeng
55
8.4k
Speed Design
sergeychernyshev
33
2.3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Thoughts on Productivity
jonyablonski
76
5.5k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
370
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
660
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k