The react server renders the version 4.4 used for routing, and the main entry file cannot receive props

react server rendering, props can not find the error, is there any way to solve this props error problem?
main entry file

import React from "react";
import { renderRoutes } from "react-router-config";

const RootApp = (props) => {
console.log(props)
return (
<div>
{renderRoutes(props.route.routes)}
</div>
);
};

export default RootApp;

Mar.15,2022
Menu