#How can I use Remix with Million.js?

1 messages · Page 1 of 1 (latest)

wind yacht
#

Million has a guide to use it with next and it’s almost the exact same process in remix. Dynamic imports, possibly client only files. I’d recommend something like Sergio’s remix-utils with his useHydrated and clientOnly hooks

#

It seems like million js doesn’t support SSR so you’ll need to make sure you’re in the client

#

I understand the library is supposed to be faster. But I have to wonder how useful it is when it only works on state less components. The second you useState you can no longer use it as a million component

ruby thistle
wind yacht
#

I suppose there are a lot of string components where it works and feels fine. Cause eventually toward the bottom it’s gonna be a stateless component. It just feels like an extra hurdle to squeeze out performance where you may not need to really care about it