Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


Save Automatically?

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.


                <div id='root'></div>



                section {
  display: flex;
  flex: 0 1 30%;
  -webkit-flex: 0 1 30%;
  margin: 0 auto;
  width: 97%;
  overflow-x: auto;

.component {
  margin-left: 5px;
  margin-right: 5px;
  padding: 10px

h3 {
  font-size: 1.25rem;
  font-family: sans-serif;
  margin-bottom: 20px;
  color: #6d6d6d;
  padding-top: 0;
  font-weight: 300;
  line-height: 1.3;

p {
  margin-top: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 42rem;

a {
  background: #bbeffdad;
  background-color: #bbeffdad;
  color: #1a1a1a;
  border-bottom: 1px solid #00000033;
  text-decoration: none;

p {
  font-family: sans-serif;

a:hover {
  background: #bbeffd;
  background-color: #bbeffd;

@media (max-width: 779px) {
  .component {
    min-width: 50%;
    margin-left: 0;
    margin-right: 0;


                const Adcomponent = props => {
  return (
    <div className="component-1 component">

const app = (
      adParagraph1="React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes." 
      adParagraph2="Declarative views make your code more predictable and easier to debug."
      adParagraph1="Build encapsulated components that manage their own state, then compose them to make complex UIs." 
      adParagraph2="Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM."
      adHeading="Learn Once, Write Anywhere" 
      adParagraph1="We don’t make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code."
      adParagraph2="React can also render on the server using Node and power mobile apps using React Native." />

ReactDOM.render(app, document.querySelector("#root"));