JS - render contents and variable declaration for Next JS

0 votes
291 views
added Mar 6, 2019 in Next JS by LC Marshal Captain (25,790 points)
recategorized Apr 21, 2021 by LC Marshal
// 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

 

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