Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

JSX

< >

JSX is a template language created in 2013.

#761on PLDB 11Years Old
HomepageTwitter


Example from the web:
class App extends React.Component { render() { return ( <div> <p>Header</p> <p>Content</p> <p>Footer</p> </div> ); } }
Example from Linguist:
'use strict'; const React = require('react') module.exports = React.createClass({ render: function() { let {feeds, log} = this.props; log.info(feeds); return <div className="feed-list"> <h3>News Feed's</h3> <ul> {feeds.map(function(feed) { return <li key={feed.name} className={feed.fetched ? 'loaded' : 'loading'}> {feed.data && feed.data.length > 0 ? <span>{feed.name} <span className='light'>({feed.data.length})</span></span> : 'feed.name' } </li> })} </ul> </div>; } });

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v154.3.0