question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show: An alternate to <Playground/>

See original GitHub issue

Hi,

I’m not really sure where this belongs, but I wanted to share it anyway. I had 2 issues with the <Playground /> element provided by Docz, so I decided to build my own version. My issues were

  1. I need to output the generated HTML that each react component will output.
  2. My client complained about the formatting of the and I found trying to edit the theme to be an absolute saga.

I have written my own helper to handle the displaying of code and elements - https://gist.github.com/Swapnull/b25fc0d408c9caade4bd3be59e3beb62

This allows me to use Prism themeing for the code block and decide if I display React/HTML for each element.

If somebody wants to create a theme to include this, be my guest, but maintaining a docz theme is a chore due to to constant updates and bug fixes you need to find time to merge in.

image image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
pedronauckcommented, Jul 25, 2018

I’ll close this issue and split up it in two others on our roadmap Please give us your vote there @Swapnull 🙏

2reactions
adrianoresendecommented, Jun 5, 2019

@pedronauck How to enable tabs to show HTML? The same example of @Swapnull ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show: An alternate to <Playground/> · Issue #164 · doczjs/docz
I need to output the generated HTML that each react component will output. My client complained about the formatting of the and I...
Read more >
PlayGround Alternatives: 25+ Music Production and similar apps
The best PlayGround alternatives are LMMS, FL Studio and Reaper. Our crowd-sourced lists contains more than 50 apps similar to PlayGround ...
Read more >
40 Synonyms of PLAYGROUND | Merriam-Webster Thesaurus
Synonyms for PLAYGROUND: playland, hotbed, hot spot, hive, headquarters, center, mecca, central, kernel, capital.
Read more >
7 of the Best Code Playgrounds & CodePen Alternatives
1. CodePen · 2. JSFiddle · 3. JS Bin · 4. CSS Deck · 5. CodeSandbox · 6. PLAYCODE · 7. Plunker.
Read more >
Top Playground Alternatives, Competitors - CB Insights
See how Playground compares to similar products. Playground's top competitors include Nymiz, and Syntonym. ... Nymiz develops a software tool that anonymizes and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found