React Base Fiddle (JSX)

Starting point for creating JSFiddles with React.

by Bhavik Bamania

HTML

<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<div id="container">
  <!-- This element's contents will be replaced with your component. -->
</div>

CSS

/* wizard with arrows */

.nomargin {
  padding: 0 !important;
  margin: 0 !important;
}

.wizard {
  background-color: white;
  padding: 0.2em 0em 0.2em 0.2em;
}

.wizard a {
  padding: 20px 12px 20px;
  position: relative;
  display: inline-block;
  text-decoration: none;
  min-width: 24.75%;
  margin-left: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  color: #FFFFFF;
  background: #1A1A1A;
  cursor: pointer;
}

.wizard a:hover {
  text-decoration: none;
}

.wizard a:first-child {
  margin-left: 0;
}

.wizard a:before {
  width: 0;
  height: 0;
  border-top: 30px inset transparent;
  border-bottom: 30px inset transparent;
  border-left: 30px solid #FFFFFF;
  position: absolute;
  content: "";
  top: 0;
  left: 0;
}

.wizard a:after {
  width: 0;
  height: 0;
  border-top: 30px inset transparent;
  border-bottom: 30px inset transparent;
  border-left: 30px solid #1A1A1A;
  position: absolute;
  content: "";
  top: 0;
  right: -30px;
  z-index: 2;
}

.wizard a.current:after {
  width: 0;
  height: 0;
  border-top: 30px inset transparent;
  border-bottom: 30px inset transparent;
  border-left: 30px solid #F7921E;
  position: absolute;
  content: "";
  top: 0;
  right: -30px;
  z-index: 2;
}

.wizard a:first-child:before,
.wizard a:last-child {
  border: none;
}

.wizard a:last-child:not(.current) {
  /*May want another class and the :before rather than using last-child.*/
  background-color: #1A1A1A;
}

.wizard a.current {
  /*May want another class and the :before rather than using last-child.*/
  background-color: #F7921E;
}


/* IE11 border bug fixes... hooray! */

_:-ms-fullscreen,
:root .wizard a:before {
  left: -14px;
}

_:-ms-fullscreen,
:root .wizard a:after {
  right: -14px;
}

_:-ms-fullscreen,
:root .wizard a:before {
  left: -29px;
}

_:-ms-fullscreen,
:root .wizard a:after {
  right: -29px;
}

Babel + JSX

class Hello extends React.Component {
  render() {
    return <div>
       <div class="wizard row">
            <a href="#" class="text-center current">
                1.Identification
            </a>
            <a href="#" class="text-center">
                2.User Details
            </a>
            <a href="#" class="text-center">
                3.Questionnaire
            </a>
        </div>
    </div>;
  }
}

ReactDOM.render(
 <Hello></Hello>,
  document.getElementById('container')
);