react/fixtures/dom
Sophie Alpert 767f52237c
Use .slice() for all substring-ing (#26677)
- substr is Annex B
- substring silently flips its arguments if they're in the "wrong order", which is confusing
- slice is better than sliced bread (no pun intended) and also it works the same way on Arrays so there's less to remember

---

> I'd be down to just lint and enforce a single form just for the potential compression savings by using a repeated string.

_Originally posted by @sebmarkbage in https://github.com/facebook/react/pull/26663#discussion_r1170455401_
2023-04-19 14:26:01 -07:00
..
public Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
src Use .slice() for all substring-ing (#26677) 2023-04-19 14:26:01 -07:00
.gitignore `act()` - s / flushPassiveEffects / Scheduler.unstable_flushWithoutYielding (#15591) 2019-05-16 17:12:36 +01:00
README.md reference yarn instead of npm in dom fixtures README (#11374) 2017-10-26 17:51:58 +01:00
package.json Rename `yarn start` to `yarn dev` and `yarn start:prod` to `yarn start` (#26209) 2023-02-21 14:18:21 -05:00
yarn.lock Update to Jest 29 (#26088) 2023-02-09 17:07:49 +01:00

README.md

DOM Fixtures

A set of DOM test cases for quickly identifying browser issues.

Setup

To reference a local build of React, first run yarn build at the root of the React project. Then:

cd fixtures/dom
yarn
yarn start

The start command runs a script that copies over the local build of react into the public directory.