我对树枝渲染和反应生根有问题。
如何在不需要修改符号路由的情况下在树枝模板中使用React路由器DOM?
如果我正确理解您:
您可以在树枝中包括并运行JS(React)文件,但是要生成正确的路由(据我了解,您想混合React和Symfony)
ypu需要在js -wou Cando中使用符号路由,请使用https://symfony.com/doc/master/bundles/fosjsroutingbundle/usage.html