Just a little post on exposing
ES2015 classes with
Meteor outside of the scope of its file. Pretty useful for
React.
Footer = class Footer extends React.Component {
render() {
return (
<footer>
<section className='ui container'>
<article>
<ul className='fa'>
<li><a className='fa-facebook' href='' target='_blank'></a></li>
<li><a className='fa-twitter' href='' target='_blank'></a></li>
<li><a className='fa-envelope' href='' target='_blank'></a></li>
</ul>
</article>
</section>
</footer>
);
}
};
Simple solution from
Roger Chapman. Thank you guy.
Aucun commentaire:
Enregistrer un commentaire