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

  • 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'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.

  • 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.

    As for flex and CSS layouts, it can be a pain, but will click eventually.

  • You can try "Chakra UI" it does have HStack, VStack components and is quite intuitive.

    You can also use Radix UI