Commit Graph

159 Commits

Author SHA1 Message Date
Dan Abramov
55f18f20ea Update Fiber debugger deps 2017-02-22 17:20:53 +00:00
Paul O’Shannessy
3c75593692 [examples] Use react-standalone (#7669)
[examples] Use babel-standalone
2017-01-26 11:57:01 -06:00
Sebastian Markbåge
5659bd2a63 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 Kobayashi
0758bb0035 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 Abramov
5afd8cd704 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 Abramov
fd1ef53711 [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 Chester
837835d7f3 Update index.html: add spaces between Web/React components (#8750) 2017-01-11 11:00:16 -08:00
Whien
3b005a7e75 fiber example typo 2017-01-03 13:52:48 +08:00
Andrew Clark
d7f89b8681 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
ead8ab7e2d Add unstable_deferredUpdates
This is needed to get the triangle demo working.
2016-12-15 09:12:12 -08:00
Daniela Borges
5545d43bc4 remove output field from debugger (#8440) 2016-11-28 18:19:49 +00:00
Dan Abramov
225325eada 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åge
f7e0db9a18 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
05c6925282 Rudimentary DOM Renderer with Example 2016-06-30 14:30:16 -07:00
Jared Fox
cd9ad90d05 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 Hagi
83521bddb0 Update examples/basic-commonjs/package.json (#6685) 2016-05-02 20:50:25 -07:00
Paul O’Shannessy
2baa3b7d2f 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
a2780212ae Merge branch 'andreypopp-patch-1' 2016-03-27 00:25:40 +00:00
Dan Abramov
ba76649c3b Rename example package.json command for consistency with README 2016-03-27 00:25:29 +00:00
terry3
7169da21ba Highlight 'NOT' word in example page. 2016-03-23 09:19:58 +08:00
Mark Murphy
0bd65aa028 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
aedfa3011e 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
Jim
7a453646be Added info (example+doc) about react with webcomponents 2015-11-13 20:22:24 -08:00
Mattijs
1220ccc805 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
41640a7475 Update CommonJS example with build script 2015-09-29 12:55:01 +03:00
Paul O’Shannessy
c529e652bd [examples] Remove Server Rendering 2015-09-24 15:12:15 -07:00
Paul O’Shannessy
3c0f46e3da [examples] Use refs instead of findDOMNode 2015-09-24 15:08:28 -07:00
Paul O’Shannessy
145ca279f9 [examples] Update basic-commonjs for new React, watchify 2015-09-24 15:08:28 -07:00
Paul O’Shannessy
f1ede3e6d2 [examples] Fix transtion example with timeout prop 2015-09-24 15:08:28 -07:00
Paul O’Shannessy
c475699d6b [examples] Use ReactDOM for appropriate APIs 2015-09-24 15:08:28 -07:00
Paul O’Shannessy
715dea085b [examples] Use Babel 2015-09-24 15:08:27 -07:00
Paul O’Shannessy
4d3d14af78 [exmaples] Remove local 3rd party code, use CDN (mostly) 2015-09-24 14:57:50 -07:00
Paul O’Shannessy
16608e3688 [examples] Assume es5 compatible browsers with console 2015-09-24 14:57:50 -07:00
Yasar icli
0c0119b70d examples jquery-mobile thirdparty files move 2015-08-17 13:43:33 +03:00
Jim
c844899187 Fixed basic-jsx example, which got clobbered during a prior bug investigation 2015-07-17 14:42:55 -07:00
Masaki KOBAYASHI
dee6726080 change http-equiv with charset 2015-07-12 10:54:54 +09:00
Masaki KOBAYASHI
81e3b632fd remove type="text/javascript" 2015-07-11 15:02:54 +09:00
Vasiliy
01535bfc18 Remove unnecessary semicolon;
For the God of css
2015-07-04 21:43:12 +03:00
Jim
6a92179d6f 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
83c8118c7c update title 2015-06-30 19:43:44 +09:00
Alex Smith
6b669aa37d used JSX 2015-06-30 17:49:25 +09:00
Alex Smith
099c227c35 lowercase index file 2015-06-30 17:26:50 +09:00
Alex Smith
67c70b8690 R: handleClick function 2015-06-27 12:13:29 +09:00
Alex Smith
2b554703af add new line at and of some files 2015-06-26 13:50:43 +09:00
Alex Smith
e58d31022c update click message 2015-06-26 13:39:59 +09:00
Alex Smith
456135eb04 rename folder 2015-06-26 13:35:30 +09:00
Alex Smith
d19aa7a363 use react from bild 2015-06-26 13:34:20 +09:00
Alex Smith
e766d5539e click conter example 2015-06-26 13:08:32 +09:00
Jim
289962f6f8 Don't bail out of reconsiliation if context changes. 2015-06-25 00:58:05 -07:00
Arian Faurtosh
f8f92f4169 added missing DOCTYPE 2015-05-31 19:41:01 -07:00