React - variable for class component

0 votes
32 views
added Oct 25 in React by lcjr First Warrant Officer (9,190 points)
class CoworkingMainTopDesktop extends React.Component {
  render() {
    const CoworkingAsset = 'https://yoursite.com/page/coworking/images/';
    return (
      <div className="coworking-main-top mobile-none">
      </div>
    );
  }
}
export default CoworkingMainTopDesktop;

 

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