Currently react 17 is a peer dependency. I think it should work fine with react 18 without changing the code.