Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vjeux
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
241.
▲
by
vjeux
12y ago
> With their current API, we can't use the code written for RN on the web. We actually designed React Native to work on the web. The layout and styles are a strict subset of CSS, the base component such as <View>, <Text>
242.
▲
by
vjeux
12y ago
React (outside of React Native) is being used on many high traffic websites. - Facebook comments, chat, search, ads creation, photo upload, tablet website... and basically every new product being written. - Entire Instagram website - Yahoo
243.
▲
by
vjeux
12y ago
> Styling nested view controllers is a pain. You are taken back to the root view controller after each refresh. It's so interesting how once you get used to instant feedback loop, anything that's longer is perceived as a pain.
244.
▲
by
vjeux
12y ago
You can `npm install parse` and run it as usual within a React Native app
245.
▲
by
vjeux
12y ago
React 0.14 is going to have similar optimizations. Check those three posts if you are interested in the details :) Reuse Constant Value Types like ReactElement: https://github.com/facebook/react/issues/3226 T
246.
▲
by
vjeux
12y ago
You should look at `fetch` which is the new specification for a promise based XHR wrapper. Polyfill: https://github.com/github/fetch To use Fetch in Firefox (38), you'll currently need to enable it — go to about:c
247.
▲
by
vjeux
12y ago
Nop, sticking with Atom :) it's awesome because it lets us write plugins with web technologies. Even though they pull React off of the core, it's still possible to use React to write plugins :)
248.
▲
by
vjeux
12y ago
Highly recommend watching Lee Byron talk about immutability. He covers your doubts very well. http://conf.reactjs.com/schedule.html#immutable-data-and-rea...
249.
▲
by
vjeux
12y ago
Modifying the DOM is usually the bottleneck in web apps. To get a fast app (extreme simplification), you need to only apply the minimum set of mutations. It turns out that in a large codebase this is extremely hard to do. React asks the dev
250.
▲
by
vjeux
12y ago
The problem with Transferable Objects is that they only work for raw buffers. This is great for math intensive tasks such as image processing, but not that great for UI related tasks. We want to be able to share js objects, arrays and strin
251.
▲
by
vjeux
12y ago
For accessibility you can look into what pdf.js does. They put a transparent text on-top of the pdf text (canvas). So you can select it. Pretty clever :)
252.
▲
by
vjeux
12y ago
> These days, on Fridays, he gets his two young sons off to school and spends the day hanging out with his wife, Gill. “It’s like dating again. We go to coffee shops. We read books together. I really feel like I’m involved in my kids’ li
253.
▲
by
vjeux
12y ago
On a related subject, React has been designed to make tracing up bugs easy via various techniques explained on those slides: https://speakerdeck.com/vjeux/why-does-react-scale-jsconf-20...
254.
▲
by
vjeux
12y ago
The way we tried to open source our front-end stack at Facebook is to release a collection of standalone libraries. This strategy worked very well to integrate with existing codebases but we're missing a very large audience: people sta
255.
▲
by
vjeux
12y ago
You can define a setter that throws in order to throw without using 'use strict;'. However, additions will still be silent :( https://gist.github.com/vjeux/6b390e6a6bb51e24b646 __DEV__ = true; var a
256.
▲
by
vjeux
12y ago
All the sessions will be recorded and put on youtube shortly after :)
257.
▲
React Community Round-up #22
(facebook.github.io)
3 points
by
vjeux
12y ago
|
0 comments
258.
▲
by
vjeux
12y ago
I modified the renderer to output React DOM instead of an HTML string if anybody's interested https://github.com/vjeux/markdown-react
259.
▲
by
vjeux
12y ago
I made a blog post that compares Hack and the new Javascript specifications ES6 and ES7[1]. They have a lot of features in common. [1] http://blog.vjeux.com/2014/javascript/hack-is-to-php-what-es...
260.
▲
by
vjeux
12y ago
React immutability helpers pros: - Work on regular JavaScript Object and Array so it's easy to get started and integrate to your app - You don't need to wrap objects inside of Immutable to use it and you can use `obj.key` and `arr
261.
▲
by
vjeux
12y ago
PureRenderMixin[1] is doing this without having you to enumerate all the props [1] http://facebook.github.io/react/docs/pure-render-mixin.html
262.
▲
by
vjeux
12y ago
If you think you can make it better in React, pull requests are more than welcome. For example, we didn't have batching when we open sourced React and it was written by the community :)
263.
▲
by
vjeux
12y ago
The reason why Mori scales better is because it implements arrays via a tree of 32-slot arrays. So unfortunately, you cannot use normal JavaScript data structures and have to re-implement all the array methods that know how to deal with thi
264.
▲
by
vjeux
12y ago
1. The boundaries are currently at event loop. Whenever an event comes in, we dispatch it to React and every time the user calls setState on the component, we mark it as dirty. At the end of that dispatch, we go from top to bottom and re-re
265.
▲
by
vjeux
12y ago
The problem with those small benchmarks is that it's pretty easy to manually write the optimal sequence of DOM commands to get the best performance. But when you scale your front-end to millions of lines of codes with many full time en
266.
▲
by
vjeux
12y ago
(a) You can use the key attribute in order to get DOM reuse. If you are looping over N keys then React is going to reuse the nodes and move them around. (b) You can implement shouldComponentUpdate in order to have a quick way not to re-rend
267.
▲
by
vjeux
12y ago
Before we launched React we had a big discussion as whether we should change the name or not. React is completely different from everything that's called "reactive programming" and we were afraid to cause confusion.
268.
▲
by
vjeux
12y ago
My hope is that React is going to be the foundation for the next generation ExtJS-like project. It has been designed with both components and speed in mind.
269.
▲
by
vjeux
12y ago
We have a component explorer of React components which can be seen as an implementation of their "Style Guide"
270.
▲
by
vjeux
12y ago
During the beta, the way we used to release CosmosUI was to send modified versions of the game interface files. On every patch, we had to manually go over all the changes we made and re-apply them to the new files. This process took several
More ›