React v0.12
facebook.github.io
React v0.12
1–10 of 79 posts
Re: React v0.12
#2Re: React v0.12
#3off topic a bit, but why do the CDN urls 301 redirect?
Re: React v0.12
#4Re: React v0.12
#5I definitely feel this forced vibe around making everyone use jsx, but have yet to hear any compelling reasons why it's better.
Re: React v0.12
#6Re: React v0.12
#7Re: React v0.12
#8I don't know if I'm reading the changes wrong, but I'm not liking how I have to do an extra step if I don't use jsx. I want to use coffescript and not have to do extra stuff. I definitely feel this forced vibe around making everyone use jsx, but have yet to hear any compelling reasons why it's better.
Re: React v0.12
#9I don't know if I'm reading the changes wrong, but I'm not liking how I have to do an extra step if I don't use jsx. I want to use coffescript and not have to do extra stuff. I definitely feel this forced vibe around making everyone use jsx, but have yet to hear any compelling reasons why it's better.
Re: React v0.12
#10Can someone explain what the "spread operator" is and how to use it?
Instead of this:
var mapArgs = function() {
var args = Array.prototype.slice.call(arguments, 0, arguments.length - 1);
var mapper = Array.prototype.slice.call(arguments, arguments.length - 1);
return args.map(mapper);
};
You can do this: var mapArgs = function(...args, mapper) {
return args.map(mapper);
};
And you can also use it to apply. Instead of: var max = Math.max.apply(null, [1, 2, 3, 4]);
You can do: var max = Math.max(...[1, 2, 3, 4]);