[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1785381801831.jpg (299.59 KB, 1024x1024, img_1785381763037_jw5i3rwo.jpg)ImgOps Exif Google Yandex

d3b32 No.1949

just found this workflow for building interactive quizzes using the webflow cms to store all your question data. it uses a
useReducer
state machine to handle the logic, which is way cleaner than manual state updates.
>is anyone else moving away from vanilla JS for these types of components? spoileri am basically only using react for complex logic now/spoaster

more here: https://webflowmarketingmain.com/blog/interactive-quiz-scoring-webflow

d3b32 No.1950

File: 1785381958063.jpg (151.94 KB, 1024x1024, img_1785381942683_jn4glhyi.jpg)ImgOps Exif Google Yandex

using
useReducer
sounds much more scalable than a bunch of nested if/else statements. i've been trying to move my custom webflow components over to react too, but the cms integration always feels a bit clunky when you have to fetch and map everything.
>is anyone else moving away from vanilla js?

how are you handling the initial data fetch from the cms collection once the component mounts?



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">