Devex in ReactJS documentation

Developer Markepear testimonials

Nice way to show code and results straight from the React docs that people love.

And this pattern can be used outside of the docs for sure.

Anyway, a classic situation:

  • you want to show the code
  • you want to show the result of that code
  • you want to let people play with the code/results
  • you want to make it easy to read and copy/use  

And folks behind React docs solved it nicely by:

  • Giving you a spit screen of code and results
  • Not showing the entire code but giving you the option to "show more"
  • You can change the code and see the results change (and errors pop up)
  • You can use buttons to reset the example, copy it, or fork on CodeSandbox

Not groundbreaking maybe but a beautiful implementation that is just a delight to use.

  • See reactjs docs
Browse 100+ examples like this ->
copy
developer experience
landing page

How fast you ship your roadmap?

developer experience
landing page
hero section

Auth0 developer portal hero section visual

copy
developer experience
call to action
landing page
hero section

Auth0 developer portal Hero section CTAs

pricing
developer experience

Very simple pricing from Userfront

developer experience
landing page

Multi-tab GIF cross section website design from Supabase

developer experience
pricing
docs

Pricing in the docs from fly.io

developer experience
landing page

Auth0 developer portal Getting started cross-section

developer experience
call to action
blog

Great article in-text CTA from DigitalOcean

developer experience
copy
vs competitor
landing page
pricing

Competitor comparison page from New Relic

landing page
developer experience
call to action

Benchmark section on homepage from Astro