Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Get Traction with Interaction: Modeling Interactive Content with React and Contentful

Jesse Pinho
February 12, 2019

Get Traction with Interaction: Modeling Interactive Content with React and Contentful

How do we make content come to life in our readers' hands with React? In this talk, I describe the approach we use at Clue to render interactive content in the middle of text-based articles on our React-based content site, helloclue.com, in a way similar to the interactive pieces publications such as The New York Times and the New Yorker have been developing. I cover the content model, the code, and the production process Clue uses to create interactive content that works for both our developers and our writers.

Jesse Pinho

February 12, 2019
Tweet

Other Decks in Technology

Transcript

  1. Writers can make changes to text without waiting for a

    code deploy. Jesse Pinho • @jessepinho • jessepinho.com
  2. Writers are able to preview their changes and get quick

    feedback. Jesse Pinho • @jessepinho • jessepinho.com
  3. 1. rich-text-to-react converts nodes to corresponding React components. 2. If

    a node is of type CustomBlock, the CustomBlock React component is loaded and rendered. 3. The CustomBlock loads a component from its registry and renders it. Jesse Pinho • @jessepinho • jessepinho.com
  4. Goals 1. ✅ Writers can make changes to text without

    waiting for a code deploy. 2. ✅ Content can be translated using Contentful's existing localization functionality. 3. " The setup isn't brittle. 4. " Writers don't have to deal with code. 5. ✅ Writers are able to preview their changes and get quick feedback. Jesse Pinho • @jessepinho • jessepinho.com
  5. Next steps 1. Better UI for editing microcopy 2. Tooling

    for managing translation of microcopy 3. Feedback from you! Jesse Pinho • @jessepinho • jessepinho.com