can I render two elements in a portal?
bury-source opened this issue · 1 comments
bury-source commented
i want to use your plugin to render react component into a ifame, can I pass two elements in one portal?
my code:
{
this.iframeHead && (
<Portal node={this.iframeHead}>
<link rel="stylesheet" href="testa.css?max_age=20000000" />
<link rel="stylesheet" href="testb.css?max_age=20000000" />'
</Portal>
)
}
now it throw an error, how can I do with this?
tajo commented
<Portal node={this.iframeHead}>
<React.Fragment>
<link rel="stylesheet" href="https://imgcache.qq.com/open_proj/proj_qcloud_v2/bee-v2/css/bee.css?max_age=20000000" />
<link rel="stylesheet" href="http://rocket.oa.com/open_proj/proj_qcloud_v2/mc_2014/mysql/css/firewall.css?max_age=20000000" />
</React.Fragment>
</Portal>