2 ms·
We provide 3rd party widgets to sites and originally built them all to leverage jQuery, which has been on 100% of them so far. However, we prefer React compone
by ericclemmons 10y ago
We provide 3rd party widgets to sites and originally built them all to leverage jQuery, which has been on 100% of them so far.
However, we prefer React components. Within a week, we were able to convert the jQuery widgets into React components and bundle with Preact.
What's funny is that it ended up being a smaller bundle due to complex logic it took to make jQuery render and update the DOM from existing state. (React's bread and butter)