Interactive React components, without ever loading React in the browser, with Qwik

Опубликовано: 09 Декабрь 2022
на канале: Steve (Builder.io)
2,173
92

Resumable React!

In this case, we're using the Material UI React library to load React components, with resumability instead of hydration, using the Qwik framework.

This means lightening fast page load times without any client JS tax, even while using your favorite React libraries and components.

You can granularly control if you conditionally want components to hydrate as well, such as on visible, on load, on prop change, manually controlled via a signal, etc.

This is using the qwikify utility in Qwik to essentially turn React components into pure, simple HTML that only runs on the server.

This technique loads the bare minimum client JS, and only as needed (including Qwik's clever prefetching so there is never a delay in interactivity, but also never a CPU cycle wasted for no reason, such as for eager hydration)

Qwik React is currently in beta - you can read more about how to try it out here: https://qwik.builder.io/qwikcity/inte...


Смотрите видео Interactive React components, without ever loading React in the browser, with Qwik онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Steve (Builder.io) 09 Декабрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,17 раз и оно понравилось 9 людям.