teach react about patternTransform

Commit to react fork here: https://github.com/dwwoelfel/react/commit/5e445a1b7ede2afdaaec6373a28c90ad53ec40b8