TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Any SwiftUI-like-styled JavaScript frameworks?

3 点作者 nbened超过 1 年前
I&#x27;m an IOS dev coming to web dev after getting used to Swiftui&#x27;s awesome HStack, VStack, ZStack, and Spacers.<p>Finding alignitems and justifycontent a little less intuitive than the stacks and spacers.<p>Anyone made a similar transition that has any tips? So many JS frameworks yet all of them so far seem to have the same styling of css, some broken css, or some combo of the two.

3 条评论

codingdave超过 1 年前
This question feels a bit off - CSS is baked into the browser, not JS frameworks. They all may create the CSS differently, and architect it differently, but at the end of the day CSS is what it is. I&#x27;d suggest first learning CSS outside of any frameworks, without JavaScript, just styling HTML. Once you have that understanding, then go see how the frameworks muck with it all.
christophilus超过 1 年前
My 2 cents is to use Tailwind for CSS and something like React for behavior and UI. Those are two very well documented, popular tools that will be very productive for you once they click. Get the Tailwind plugin for your editor. Oh, and use Typescript.<p>As for flex and CSS layouts, it can be a pain, but will click eventually.
soueuls超过 1 年前
You can try &quot;Chakra UI&quot; it does have HStack, VStack components and is quite intuitive.<p>You can also use Radix UI