The rise of AI does not put the relevance of React under any threat. Thus AI will not be replacing React, not anytime soon at least. What AI fundamentally offers to do is, automate certain tasks that take up a long time in operations such as web development.
AI is an enabler, it is nowhere close to being a replacement in its current state, especially when we look at the type of codes AI generates. React and the developers practicing it will stay in demand to solve complex issues or to build customized interfaces, based on the client's needs.