import React from "react"; function RenderSources({ sources }) { return ( <> {sources.html &&

HTML

} {sources.html && (
          {sources.html_html && (
            
          )}
          {!sources.html_html && {sources.html}}
        
)} {sources.css &&

CSS

} {sources.css && (
          {sources.css_html && (
            
          )}
          {!sources.css_html && {sources.css}}
        
)} {sources.js &&

JavaScript

} {sources.js && (
          {sources.js_html && (
            
          )}
          {!sources.js_html && {sources.js}}
        
)} ); } function RenderLiveSample({ example }) { const srcdoc = ` ${example.description.title} ${example.sources.html} `; return ( <>

Result