Rich text editing with DraftJS Plugins
Earlier this year Facebook open sourced its React based rich text editing framework Draft.js. At Facebook it powers status updates, comments & notes. Others used it to build editors matching Medium’s experience.
Together with a whole team of open source contributors I built a plugin architecture on top of Draft.js. In this talk I walk you through the existing plugins and show how you can build your own feature-rich text editor for the web with only a handful lines of code.
At the moment GraphQL allows 2 types of queries:
Reference implementation also adds the third type:
subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
What forces layout / reflow
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
Getting box metrics
Like an Event, an Observable is a sequence of values that a data producer pushes to the consumer. However unlike an Event, an Observable can signal to a listener that it has completed, and will send no more data.
Querying Arrays only gives us a snapshot. By contrast, querying Observables allows us to create data sets that react and update as the system changes over time. This enables a very powerful type of programming known as reactive programming.
Disposing of a Subscription object unsubscribes from the event and prevents memory leaks. Disposing of a subscription is the asynchronous equivalent of stopping half-way through a counting for loop.
If we convert Events to Observable Objects, we can use powerful functions to transform them.
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
|Copyright (c) 2015 Paul Jolly <firstname.lastname@example.org)|
|Permission is hereby granted, free of charge, to any person obtaining a copy|
|of this software and associated documentation files (the "Software"), to deal|
|in the Software without restriction, including without limitation the rights|
|to use, copy, modify, merge, publish, distribute, sublicense, and/or sell|
|copies of the Software, and to permit persons to whom the Software is|
|furnished to do so, subject to the following conditions:|