761 karma · joined October 6, 2009
<div>
<p>this is easy</p>
{list.map((l) => <li>{l}</li>)}
</div>
> you automatically get loops, variable interpolation etc without having to invent a compiler and new syntaxTo be fair to JSX, you use regular loops, interpolation, etc without any different syntax (`{}` accepts a vanilla JS expression), you just obviously need the compiler step to de-sugar the element tags to `createElement` calls.
Build tools wise, a simple Webpack/Babel config from 2014 would be relatively straightforward to update to the latest versions.
Very subjective. I personally think having a limited set of substitutions helps keep the game more interesting as every change can be hugely impactful to the team's tactics and the result of the game.
Not exactly - the subdomain is the account and the path name is the repository (and the repository's `gh-pages` branch is what's returned).
$('.my-component div').css({ background: 'yellow' })
vs. Array.from(document.querySelectorAll('.my-component div')).map(node => {
node.style.background = 'yellow';
})> Nokia terminated its support of software development and maintenance for Symbian with effect from 1 January 2014, thereafter refusing to publish new or changed Symbian applications or content in the Nokia Store and terminating its 'Symbian Signed' program for software certification. (http://www.allaboutsymbian.com/news/item/18502_New_Symbian_a...)
One of the best things about JS/Node is that you can wait on I/O from different sources at the same time and since the async/await syntax is just sugar over Promises, you can do things like:
const [user, notifications, messages] = await Promise.all([
getUser(),
getNotifications(),
getMessages(),
]);
Instead of having to wait on I/O sequentially like: const user = getUser();
const notifications = getNotifications();
const messages = getMessages();
if awaiting were implicit.Since it only cares about UI, React is obviously not opinionated about your backend/server environment unless you're trying to do server rendering (then you need something in your stack capable of executing JS).
Since React only deals with UI, I use it alongside a bunch of other great libraries such as Redux (for state management).
For example, if you're locked to the US region and watch something that is only available in the US while visiting, say, the UK — would that break any of Netflix's license agreements?