Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spicyj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
361.
▲
by
spicyj
11y ago
Ah, but back in the days of IE4 (when this property was introduced), "online" wasn't a word yet.
362.
▲
by
spicyj
11y ago
Steve Jobs didn't really run Pixar.
363.
▲
by
spicyj
11y ago
(FWIW, this comment is not [dead].)
364.
▲
by
spicyj
11y ago
Facebook's Flow and Hack typecheckers both do this.
365.
▲
by
spicyj
11y ago
It's been updated: https://developers.facebook.com/status/issues/45182228835901... Someone needs to go update it, you know…
366.
▲
by
spicyj
11y ago
If your shouldComponentUpdate always ends up returning true, then any time spent in that method is wasted, because you have to go update the component after that. And as React becomes more and more optimized, shouldComponentUpdate becomes l
367.
▲
by
spicyj
11y ago
Objects whose type is a subtype of "Printable | Drawable" (union) are those that implement either interface. For "Printable & Drawable" (intersection), you have objects that implement both interfaces. Meaning, those
368.
▲
by
spicyj
11y ago
I'm not a lawyer, but you might have missed this clause in the patent grant: > Notwithstanding the foregoing, if Facebook or any of its subsidiaries or corporate affiliates files a lawsuit alleging patent infringement against you in
369.
▲
by
spicyj
11y ago
If you want the exact same app on both platforms, you can do that on React Native too. The Facebook apps don't do that because we believe it gives a worse user experience.
370.
▲
by
spicyj
11y ago
Enable them like you would enable or disable any other babel transformer, using the "optional" param in .babelrc (or --optional on the command line, etc).
371.
▲
by
spicyj
11y ago
For a while, we were aiming for a "1.0" release. Lately, we've been more of the opinion that React will probably continue to evolve over time. We'll probably skip over the dot sometime (e.g., 0.14 -> 15.0) to help ref
372.
▲
by
spicyj
11y ago
Probably the latter, though we might add a native one too after we run our tests using a version of Node that supports classes.
373.
▲
by
spicyj
11y ago
They are components in that they render later, but they don't support any lifecycle methods. We'll probably add some sort of "pure" flag via static properties on the function later.
374.
▲
by
spicyj
11y ago
It was called iPhone OS for a few years.
375.
▲
by
spicyj
11y ago
That's right. In almost all cases you should just use a ref now and not call findDOMNode except as an upgrade path, because findDOMNode breaks encapsulation when used on other components.
376.
▲
by
spicyj
11y ago
In this release, we do patch .getDOMNode() onto DOM nodes that are returned as refs so this should continue to work. File an issue if it doesn't. If your code has no warnings in 0.13, you should be able to upgrade immediately, with the
377.
▲
by
spicyj
11y ago
Yes, they'll work with a warning until 0.15.
378.
▲
by
spicyj
11y ago
Yes, though we use Babel to compile all of our JS source code and tests.
379.
▲
by
spicyj
11y ago
They already are in devDependencies.
380.
▲
by
spicyj
11y ago
Can you help us understand why?
381.
▲
by
spicyj
11y ago
We just test that their class systems work properly with React: https://github.com/facebook/react/tree/v0.14.0-rc1/src/isomo... We don't use either one outside of the tests.
382.
▲
by
spicyj
11y ago
Dupe of https://news.ycombinator.com/edit?id=10199162 .
383.
▲
React 0.14 Release Candidate
(facebook.github.io)
128 points
by
spicyj
11y ago
|
65 comments
384.
▲
by
spicyj
11y ago
Does this apply to App Engine too? Is there a way to test if you're getting the direct route?
385.
▲
Inside Facebook's plan to build a better school
(theverge.com)
22 points
by
spicyj
11y ago
|
1 comments
386.
▲
by
spicyj
11y ago
Yes, we'd like to do that sometime, at least for viewing Immutable data structures easily. We already have "Store as global variable" if you right-click.
387.
▲
by
spicyj
11y ago
What?
388.
▲
by
spicyj
11y ago
Did we use that number anywhere? The only place you should actually see this version number is in your browser settings so it shouldn't really matter. Edit: Oh, I see we did. The version number in manifest.json and package.json was 0.1
389.
▲
by
spicyj
11y ago
Yup! Try it on facebook.com.
390.
▲
by
spicyj
11y ago
Any chance you can file an issue with a link to your site so I can look into it?
More ›