Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - render contents and variable declaration for React & Next S

0 votes
8 views
added Mar 6 in ES6 by LC Marshal Captain (20,510 points)
// Next use export default for rendering
import React from 'react';  

const title = 'Tiara Heights';

export default () => (
  <div className="detail-similar-properties">
    <h1>Similar Properties</h1>
    <div className="row">
      <div className="col-md-4">
        <div><img src={similarImg} /></div>
        <div>{title}</div>
        <div>{district}, {state} </div>
      </div>
    </div>
  </div>
);

// React

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...