#3, #4 and #6 introduce various changes that are likely to impact performance.
Should review:
- Injection of container node for each rehydration
- Building of compound selector string (
for loop)
- Querying root by compound selector string instead of data attributes
- Looping through each rehydrating component to find relevant rehydrator (
find)
- Use of
.matches(options.compoundSelector) instead of .hasAttribute
Rather than reviewing each item, it might be worth smoke testing react-from-html and react-from-markup to get an "ops / second (higher is better)" type comparison.