teach React about patternTransform