News for hackers. Stuff that matters.
Re:Why we chose Vue.js over React by straye on Sunday December 11, 2016 @04:22PM (#13153348)
This also works:

    function Home(props) {
      return (
        <div>
          <h2>HELLO</h2>
          <p>Duis a turpis sed lacus dapibus elementum sed eu lectus.</p>
          {
            props.location.query.home ?
              ( <p>You specified a home query: { props.location.query.home }</p> )
              : ( <p>No home query was specified.</p> )
          }
        </div>
      );
    }

There are no comments on this comment yet.