Comment

Comment by TAKEMYMONEY

> Was this slightly more work than using a library from npm?

> I'd definitely recommend using a library for this, and we settled on lit-html (link to library from npm)

This article is mostly about switching from React to Lit. You can use modern web APIs (like FormData) with React, FormData's not a replacement for state management.

You can use Web Components with React, the way Fluent UI does (https://docs.microsoft.com/en-us/fluent-ui/web-components/in...).

In this single case they replaced a couple validation functions with attributes. Good to move that direction but if that's all you use React for then yeah, you might not miss it much.

parent TAKEMYMONEY 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton