`
import { GPTVis, Pie} from "@antv/gpt-vis"; //react组件
import { applyPureReactInVue } from "veaury";
const GPTVisReact = applyPureReactInVue(GPTVis);
const GPTVIsReactPie = applyPureReactInVue(Pie);
const mdString = # hello;
//使用默认children这种方式传入不会渲染
return (<>
{mdString}
<>)
//使用props传参会正常渲染
return (<>
<GPTVIsReactPie data=[{category:'1",value:1}]/>
<>)
`
我写了一个代码大概,就是通过props传参会正常渲染,但是通过children这种方式传入字符串不会渲染,请问我是写错了吗?
`
import { GPTVis, Pie} from "@antv/gpt-vis"; //react组件
import { applyPureReactInVue } from "veaury";
const GPTVisReact = applyPureReactInVue(GPTVis);
const GPTVIsReactPie = applyPureReactInVue(Pie);
const mdString =
# hello;//使用默认children这种方式传入不会渲染
return (<>
{mdString}
<>)
//使用props传参会正常渲染
return (<>
<GPTVIsReactPie data=[{category:'1",value:1}]/>
<>)
`
我写了一个代码大概,就是通过props传参会正常渲染,但是通过children这种方式传入字符串不会渲染,请问我是写错了吗?