Is it safe to use jsx v4 with react@17?

My goal is to make dataTestId attribute work in JSX. Looks like this attribute is available with rescript/react@0.11.0 and JSXv4 enabled, but I can not update react to v18 because it breaks some 3rd party libraries.

If there are other way to make dataTestId work without manual cloning of the element it will work for me too.