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="reactDiv"></div>
<!--<div class="container">
    <div class="row">
        <span class="col-sm-6">
            <textarea id="testArea" class="form-control"></textarea>
<div class="container-fluid">
    <div style="margin:50px auto;" class="well text-center">Coded by <a href='' target='_blank'>Achilleas Papakonstantinou</a> <i class="fa fa-copyright"></i> 2016</div>


    margin-top: 50px
    resize: vertical
    height: 500px
    background-color: black


                var SimpleText = React.createClass({
    getInitialState: function() {
        return {
            text: 'Heading\n=======\n\nSub-heading\n-----------\n\n\n### Another deeper heading\n\n\nParagraphs are separated\nby a blank line.\n\nLeave 2 spaces at the end of a line to do a \nline break\n\nText attributes *italic*, **bold**, `monospace`, ~~strikethrough~~ .\n\nShopping list:\n\n  * apples\n  * oranges\n  * pears\n\nNumbered list:\n\n  1. apples\n  2. oranges\n  3. pears\n\n\n *[Achilleas Papakonstantinou](*',
    rawMarkup: function() {
        var rawMarkup = marked(this.state.text.toString(), {sanitize: true});
        return { __html: rawMarkup };
    changeText: function(event) {
    render: function() {
        return (
            <div className="container">
                <div id="left" className="row">
                    <div className="col-sm-6">
                        <textarea id="textArea" className="form-control height:500px" onChange={this.changeText}>{this.state.text}</textarea>
                    <div className="col-sm-6 well">
                        <span id="output" dangerouslySetInnerHTML={this.rawMarkup()} />

    <SimpleText />,