* Adopt react 18 rc2 * execute shouldUseReactRoot only once * update test Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>