Files
react/fixtures/attribute-behavior
Sebastian Silbermann 9aef5d225b Use modern rendering APIs for attribute-behavior fixture (#27883)
The attribute-behavior fixture now uses `createRoot().render()` and
`renderToReadableStream` instead of depdrecated APIs.

This revealed some changes to the snapshots that I annotated for
discussion.

I also added some new tests related to upcoming changes for easier
future diffing.

Also adds support for running the attribute-behavior fixture using Apple
Silicon chips (Apple MBP M-series).
2024-01-26 19:03:42 +01:00
..

Attribute Behavior Fixture

WIP: This is an MVP, still needs polish.

Known Issues

  • There are currently two errors thrown when the page loads; SyntaxError: missing ; before statement

Instructions

yarn build --type=UMD_DEV react/index,react-dom && cd fixtures/attribute-behavior && yarn install && yarn dev

Interpretation

Each row is an attribute which could be set on some DOM component. Some of them are invalid or mis-capitalized or mixed up versions of real ones. Each column is a value which can be passed to that attribute. Every cell has a box on the left and a box on the right. The left box shows the property (or attribute) assigned by the latest stable release of React, and the right box shows the property (or attribute) assigned by the locally built version of React.

Right now, we use a purple outline to call out cases where the assigned property (or attribute) has changed between React 15 and 16.


This project was bootstrapped with Create React App.

You can find the guide for how to do things in a CRA here.