admin管理员组文章数量:1252714
Quick version: Why is Amplify's Grid class not translated to a
<div style="... display: grid" >
as expected?
Long version...
I started with the Amplify V2 Quickstart instructions here to clone the amplify-vite-react-template.
Then, I removed some of the pre-existing code and dropped in my grid:
return (
<main>
<h1>My App</h1>
<Grid
templateColumns="1fr 1fr"
columnGap={"2em"}
rowGap="1.5em"
>
<View column="1">
<TextField label="First name:"></TextField>
</View>
<View column="2">
<TextField label="Last name:"></TextField>
</View>
<View column="1" columnSpan={2}>
<TextField width="100%" label="Email:"></TextField>
</View>
</Grid>
<br />
<div>
本文标签:
reactjsAmplify V2 with awsamplify 6 Grid not translated correctly into HTMLStack Overflow
版权声明:本文标题:reactjs - Amplify V2 with aws-amplify 6: Grid not translated correctly into HTML - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1740314283a2259998.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论