我需要将一个参数传递category给CustomTreeItemis TreeItemContent。
\n文档: https: //mui.com/ru/api/tree-item/
import TreeItem, {\n TreeItemProps,\n useTreeItem,\n TreeItemContentProps,\n} from \'@material-ui/lab/TreeItem\';\n\ninterface CatProps {\n name: string,\n id: string,\n}\n\ninterface CatItemContentProps extends TreeItemContentProps {\n category: CatProps,\n}\n\nconst CustomContent = React.forwardRef(function CustomContent(\n props: CatItemContentProps,\n ref,\n ) {\n const { category } = props;\n console.log(category); // undefined\n\n return <></>;\n }\n);\n\n\ninterface CatItemProps extends TreeItemProps {\n category: CatProps,\n}\n\nconst CustomTreeItem = (props: CatItemProps) => {\n return (\n <TreeItem ContentComponent={CustomContent} {...props} />\n );\n};\n\nRun Code Online (Sandbox Code Playgroud)\n我该怎么做?
\n第一个答案后的\xd0\xa1说明
\n新代码是:
\nconst CustomContent …Run Code Online (Sandbox Code Playgroud) 我需要什么配置文件来启动 Remix 应用程序?\n它没有index.html文件
重现步骤(https://remix.run/docs/en/v1/guides/deployment):
\nnpx create-remix@latest\n? Where would you like to create your app? (./my-remix-app)\n? Where do you want to deploy? Choose Remix if you\'re unsure, it\'s easy to change deployment targets. (Use arrow keys)\n\xe2\x9d\xaf Remix App Server\n? TypeScript or JavaScript? (Use arrow keys)\n\xe2\x9d\xaf TypeScript\ncd my-remix-app\nnpm run build\nRun Code Online (Sandbox Code Playgroud)\n我们必须目录:public, build
下一步是什么来展示它的website.com使用nginx?