mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
9c77ffb444
**what is the change?:** We had a condition to set either 'performance.now' or 'Date.now' as the 'now' function. Then later we had another conditional checking again if 'performance.now' was supported, and using it if so, otherwise falling back to 'Date.now'. More efficient to just use the 'now' shortcut defined above. **why make this change?:** Fewer lines, clearer code. **test plan:** Now that we have tests we can run them :)
React Scheduler
This is a work in progress - we are building a utility to better coordinate React and other JavaScript work.