Commit Graph
158 Commits
Author SHA1 Message Date
Paul O’ShannessyandBrandon Dail 31bb5a790e [examples] Use react-standalone (#7669)
[examples] Use babel-standalone
2017-01-26 11:57:01 -06:00
Sebastian MarkbågeandGitHub b8cf39834c Polyfill requestIdleCallback when native is not available (#8833)
I introduce the ReactDOMFrameScheduling module which just exposes
rIC and rAF.

The polyfill works by scheduling a requestAnimationFrame, store the time
for the start of the frame, then schedule a postMessage which gets
scheduled after paint. The deadline is set to time + frame rate.
By separating the idle call into a separate event tick we ensure that
layout, paint and other browser work is counted against the available time.

The frame rate is dynamically adjusted by tracking the minimum time between
two rAF callbacks. This is not perfect because browsers can schedule
multiple callbacks to catch up after a long frame. To compensate for this
we only adjust if two consecutive periods are faster than normal.

This seems to guarantee that we will hit frame deadlines and we don't end
up dropping frames. However, there is still some lost time so we risk
starving by not having enough idle time.

Especially Firefox seems to have issues keeping up on the triangle demo
However, that is also true for native rIC in Firefox. It seems like more
render work is scheduled on the main thread pipeline and also that JS
execution just generally has more overhead.
2017-01-21 10:27:46 -08:00
Toru KobayashiandDan Abramov 935c349753 Fix to work fiber debugger with npm start (#8811)
* FiberDebugger uses packages built in local

* Fix key warnings in FiberDebugger

* Remove react packages from package.json and yarn.lock for using pacakges built in local

* Remove fiber.js from `files` in package.json
2017-01-17 05:34:02 -08:00
Dan AbramovandGitHub d24a6597ed Improve Fiber debugger (#8767)
* Simplify the hooks
* Capture completion at the right moment
* Animate the scroll with the fiber on the stack
* Better display priorities
2017-01-13 04:41:56 -08:00
Dan AbramovandGitHub 0e45f94306 [Fiber Debugger] Bring up to date (#8765)
* Ignore orphaned fibers in the debugger

* Remember last entered code via localStorage

* Update Create React App

* Minor fixes

* Dogfood Fiber
2017-01-12 11:55:59 -08:00
Piper ChesterandDan Abramov 8664b66089 Update index.html: add spaces between Web/React components (#8750) 2017-01-11 11:00:16 -08:00
Whien 3cfcb29e60 fiber example typo 2017-01-03 13:52:48 +08:00
Andrew Clark a10c5da90a Don't rely on commit phase effect to clear updates
Instead clear updates on the work-in-progress during the begin phase.
Aborted updates are recovered by cloning from the current fiber.
2016-12-15 09:12:12 -08:00
Andrew Clark 7e95c91629 Add unstable_deferredUpdates
This is needed to get the triangle demo working.
2016-12-15 09:12:12 -08:00
Daniela BorgesandDan Abramov c485f3589e remove output field from debugger (#8440) 2016-11-28 18:19:49 +00:00
Dan AbramovandGitHub 5472c94996 Add Fiber Debugger (#8033)
* Build react-noop as a package

This lets us consume it from the debugger.

* Add instrumentation to Fiber

* Check in Fiber Debugger
2016-10-25 08:36:37 +01:00
Sebastian MarkbågeandGitHub 390d72adfc Build React DOM Fiber package (#7173)
This builds a `react-dom-fiber.js` bundle which exposes ReactDOMFiber.
This allows early experiments with the new Fiber reconciler.

I also expose it in the npm package through `react-dom/fiber`.
2016-08-10 18:45:14 -07:00
Sebastian Markbage dc17ed968d Rudimentary DOM Renderer with Example 2016-06-30 14:30:16 -07:00
Jared FoxandJim 45741ae4f5 fix webcomponent example issue #7056 (#7057)
* fix webcomponent example issue #7056

* update fix issue #7056, remove unused web component  callbacks
2016-06-22 10:30:04 -07:00
Tanase HagiandPaul O’Shannessy c01c50b062 Update examples/basic-commonjs/package.json (#6685) 2016-05-02 20:50:25 -07:00
Paul O’Shannessy ab3f11fb18 Update examples for v15
- Update commonjs example to use Babel 6
- Update click counter example to match other examples
- Update jquery example
- Stop shipping webcomponents.js in starter kit
2016-03-29 11:00:48 -07:00
Dan Abramov b81286a1ad Merge branch 'andreypopp-patch-1' 2016-03-27 00:25:40 +00:00
Dan Abramov 09d895f424 Rename example package.json command for consistency with README 2016-03-27 00:25:29 +00:00
terry3andTengfeiGuo e10cb841cf Highlight 'NOT' word in example page. 2016-03-23 09:19:58 +08:00
Mark Murphy 5200675942 Fixes #5959 - jquery-bootstrap example uses which does not exist
1. Add a handleHidden method to the BootstrapModal component.
2. Add an event listener for 'hidden.bs.modal' on the modal root
3. Add a new onHidden prop to the BootstrapModal component.
4. Add a new 'handleModalDidClose' method to the Example component to be used as the onHidden prop of it's modal component.
2016-02-01 21:54:56 -04:00
leeyoungalias 7753dfb30f update react example basic-jsx-precompile comand line on markdown file,new version of babel needed a react presets dependency. 2016-01-16 22:53:24 +08:00
Jimandjim ea3a6ee667 Added info (example+doc) about react with webcomponents 2015-11-13 20:22:24 -08:00
Mattijs 085d0d6e07 update instructions of the following examples: basic-commonjs, basic-jsx-external and basic-jsx-precompile 2015-11-11 10:51:47 +01:00
Andrey Popp 67ff28b17b Update CommonJS example with build script 2015-09-29 12:55:01 +03:00
Paul O’Shannessy 2cf24b622d [examples] Remove Server Rendering 2015-09-24 15:12:15 -07:00
Paul O’Shannessy 8d4764394a [examples] Use refs instead of findDOMNode 2015-09-24 15:08:28 -07:00
Paul O’Shannessy 516bfa68b0 [examples] Update basic-commonjs for new React, watchify 2015-09-24 15:08:28 -07:00
Paul O’Shannessy 52ab3ef190 [examples] Fix transtion example with timeout prop 2015-09-24 15:08:28 -07:00
Paul O’Shannessy 4087ee9c39 [examples] Use ReactDOM for appropriate APIs 2015-09-24 15:08:28 -07:00
Paul O’Shannessy 30c1dab81f [examples] Use Babel 2015-09-24 15:08:27 -07:00
Paul O’Shannessy 453cc1696f [exmaples] Remove local 3rd party code, use CDN (mostly) 2015-09-24 14:57:50 -07:00
Paul O’Shannessy 724df3be04 [examples] Assume es5 compatible browsers with console 2015-09-24 14:57:50 -07:00
Yasar icli 08718e627c examples jquery-mobile thirdparty files move 2015-08-17 13:43:33 +03:00
Jim 21162cbed3 Fixed basic-jsx example, which got clobbered during a prior bug investigation 2015-07-17 14:42:55 -07:00
Masaki KOBAYASHI 92077c9dec change http-equiv with charset 2015-07-12 10:54:54 +09:00
Masaki KOBAYASHI c89e49c5f3 remove type="text/javascript" 2015-07-11 15:02:54 +09:00
Vasiliy 280e77b63f Remove unnecessary semicolon;
For the God of css
2015-07-04 21:43:12 +03:00
Jim b16dea215c Merge pull request #4221 from jimfb/ryans-context-bug
updateComponent should update the context iff it has changed
2015-07-02 04:45:41 -07:00
Alex Smith ec7e4224e3 update title 2015-06-30 19:43:44 +09:00
Alex Smith 3f832598d7 used JSX 2015-06-30 17:49:25 +09:00
Alex Smith a541f86af5 lowercase index file 2015-06-30 17:26:50 +09:00
Alex Smith 41db01c711 R: handleClick function 2015-06-27 12:13:29 +09:00
Alex Smith 2ed8cfd1e4 add new line at and of some files 2015-06-26 13:50:43 +09:00
Alex Smith fb9aeef0c7 update click message 2015-06-26 13:39:59 +09:00
Alex Smith e5f65d4fe0 rename folder 2015-06-26 13:35:30 +09:00
Alex Smith 998fa178c9 use react from bild 2015-06-26 13:34:20 +09:00
Alex Smith 3d7f09049e click conter example 2015-06-26 13:08:32 +09:00
Jim 8fd13526df Don't bail out of reconsiliation if context changes. 2015-06-25 00:58:05 -07:00
Arian Faurtosh 94b94bcf78 added missing DOCTYPE 2015-05-31 19:41:01 -07:00
thorn0 6d727dd6b0 Remove envify from the basic-commonjs example
`envify` is installed as a dependency of the `react` package. There is no need in installing it one more time
2015-06-01 01:09:46 +03:00