https://docs.google.com/presentation/d/1Z8mGsv4JU2TafNPIHw2RcejoNp7AN_v4LfCCGC7qrgw/edit#slide=id.p
february 2018
- almost no code was shared between App and ft.com
- v different tech stacks between App and even between different apps in ft.com
- preact, fruitmachine, handlebars, react...
- origami exists and can do styling but not templates
- templates & component logic is the largest surface area for sharing code
the idea
-
use JSX but without a runtime
-
glue library to unify different runtimes
@financial-times/x-engine
-
x-dash consumers can configure x-engine to inject the runtime they want into components
-
x-interaction to lock down interactive components and (hopefully) make sure components can't do silly side-effectful stuff that won't work in the app
development experience
- storybook for 10000 foot view of components, use cases & data
now (october 2018)
"done"
@financial-times/x-teaser
in progress
- x-gift-article,
- x-follow-button
- x-article-save-button