Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <meta charset="utf-8" />
  <title>React from CDN</title>
  <style>/* moved to CSS panel */</style>

  <!-- Target container -->
  <div id="app"></div>

  <!-- React --><!-- ReactDOM -->
  <script src=""></script>
  <script src="">

<!-- Our own custom React code is now in the JS panel -->


                .purple {
  color: purple;
.eighty {
  font-size: 80px;
.seventy {
  font-size: 70px;
.fifty {
  font-size: 50px;



                const h1Hello = "Hello World!";
const h2Hello = "Hello again";
const h3Hello = "Hello yet again";
const h4Hello = "Whatever";
const h5Hello = "I can do this all day";

  <div className="purple">
    <h1 className="eighty">{h1Hello}</h1>
    <h2 className="seventy">{h2Hello}</h2>
    <h3 className="fifty">{h3Hello}</h3>
    <h4 className="fifty">{h4Hello}</h4>
    <h5 className="fifty">{h5Hello}</h5>