TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

3 pointsby nbenedover 1 year ago
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 comments

codingdaveover 1 year ago
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.
christophilusover 1 year ago
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.
soueulsover 1 year ago
You can try &quot;Chakra UI&quot; it does have HStack, VStack components and is quite intuitive.<p>You can also use Radix UI