This Week In React #107: Plasmo, Panapasi, Fastify-DX, Remix, Solid, useInsertionEffect, JSI, Vite, Angular, Safari...
Tags: react, reactnative, typescript, javascript
Published: 2022-06-07 22:08:01

---
series: This Week In React
---
Hi everyone!

Remix, TanStack, Chakra, Mitosis, Panapasi, Fastify-DX... What do they have in common?

They are becoming framework-agnostic! It's clearly a growing trend!

I arrived in Krakow for the App.js conf. Hope you bring back some great React-Native content for next week 😄

🙏 **Support the newsletter:**

-   😘 **Recommend it to your friends**: it really helps!
-   💸 [**Sponsor This Week In React**](https://gist.github.com/slorber/cb732fb5d0a002c4d73236a9baeba7bb?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)
-   😍 [**Write testimonials on Twitter**](https://twitter.com/sebastienlorber/timelines/1448942785814466561?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)
-   🧵 [**Retweet the latest Twitter thread**](https://slo.im/thread?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)
-   📨 Reply to this [**email**](mailto:lorber.sebastien@gmail.com?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter): feedback is welcome
-   👥 Follow on [**LinkedIn**](https://www.linkedin.com/company/this-week-in-react/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

**If you like this newsletter, subscribe in priority there**:

-   🇬🇧 [ThisWeekInReact.com](https://thisweekinreact.com/)
-   🇫🇷 [ReactHebdo.fr](https://reacthebdo.fr/)


[![](https://user-images.githubusercontent.com/749374/153181021-8fdb0ece-270a-4cf2-980b-4557d04316ad.png)](https://thisweekinreact.com)

---

## React

[**Plasmo - Like Next.js for browser extensions!**](https://github.com/PlasmoHQ/plasmo?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

A new framework focused on the creation of browser extensions, based on React and TypeScript. Open-source, free core, which offers paid CI/CD cloud service.

[**Panapasi - The Universal UI Library**](https://papanasi.js.org/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

We see more and more UI libs that want to offer a native cross-framework support (see Chakra, TanStack libs...). Panapasi is to my knowledge the first project of its kind based on [Mitosis](https://github.com/BuilderIO/mitosis?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter), compiling a JSX Lite dialect to the target frameworks.

[**Fastify DX for React**](https://github.com/fastify/fastify-dx/blob/main/packages/fastify-dx-react/README.md?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

New fullstack framework under development, based on Fastify and Vite. Agnostic: can be adapted to several frameworks (React, Vue, Solid...). The React integration aims to be a lightweight alternative to Next.js and Remix, based on React-Router and Valtio.

[**Converting a React Component to SolidJS**](https://dev.to/mbarzeev/converting-a-react-component-to-solidjs-5bgj?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Converting a pagination component from React to Solid. A lot of JSX code can be taken as is, but the hooks will have to be adapted a little. Solid represents a real innovation: the code looks a lot like React in the end (without dependency array 😏) but the execution model is reactive.

[**Redux Toolkit's new listener middleware vs. Redux-Saga**](https://blog.logrocket.com/redux-toolkits-new-listener-middleware-vs-redux-saga/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Nice side by side comparison of the new RTK Listener system vs Redux Saga. Compares the implementation of many use-cases. RTK Listener seems like a good lightweight alternative to Redux-Saga, with a relatively low learning curve. A good resource to choose one or the other, or to plan a migration.

[**React 18 useEffect Double Call for APIs: Emergency Fix**](https://javascript.plainenglish.io/react-18-useeffect-double-call-for-apis-emergency-fix-724b7ee6a646?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Jack gives 6 possible solutions to avoid the double query problem with React 18's StrictMode. Using a lib like React-Query or RTK-Query (hmmm, TanStack Query 😏) seems the easiest.

**Extras:**

-   📖 [Second draft of the useEffect guide](https://twitter.com/dan_abramov/status/1532754556488146947?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): new beta doc
-   📜 [Remix-ing Routing in Angular](https://dev.to/brandontroberts/remix-ing-routing-in-angular-4g90?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): Remix is ​​framework-agnostic. Brandon shows how it can be integrated with the brand new Angular v14.
-   📜 [Setting up a dev environment with React, Vite, and Tailwind](https://blog.logrocket.com/setting-up-dev-environment-react-vite-tailwind/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): highlights the advantages of Vite over Webpack/CRA.
-   📜 [Know about the useInsertionEffect hook in React 18](https://blog.saeloun.com/2022/06/02/react-18-useinsertioneffect?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): presentation of a hook intended for authors of CSS-in-JS libs. Allows styles to be inserted at the best time.
-   📜 [Modulz has been acquired by WorkOS](https://modulz.app/blog/modulz-acquired-by-workos?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): gives details on the maintenance of their popular React libs Radix and Stitches.
-   📜 [The Case For Prisma In The Jamstack](https://www.smashingmagazine.com/2022/06/case-prisma-jamstack/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): explains the interest of combining Prisma with various frameworks like Next.js or Redwood.
-   🐦 [React Server Components + SSG/ISR](https://twitter.com/sebmarkbage/status/1532755826850537475?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): it will be possible to use Server Components with static generation: the SSG framework will output static `.rsc` files.
-   🐦 [useRef<HTMLElement> + TypeScript contravariance](https://twitter.com/sebastienlorber/status/1533799576985124865?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): my analysis + 2 suggested solutions.
-   🐦 [CSS @scope + React](https://twitter.com/sebastienlorber/status/1533767305875824641?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): upcoming CSS feature that could be useful for the React component model and encapsulation
-   📦 [TanStack](https://tanstack.com/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): TanStack libs are gradually becoming framework-agnostic! TanStack Query, TanStack Virtual, TanStack Table...
-   📦 [Remix-Flat-Routes](https://github.com/kiliman/remix-flat-routes?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): package to support a flat file-system routing convention for Remix. Gives good arguments for using it.
-   📦 [Jest-Image-Snapshot](https://github.com/americanexpress/jest-image-snapshot?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): visual regression testing tool. New v5 upgrades to Jest 28. Best used with [Storybook StoryShots](https://github.com/storybookjs/storybook/tree/main/addons/storyshots/storyshots-core?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter).
-   📦 [Recoil Relay 0.1.0](https://recoiljs.org/blog/2022/06/02/recoil-relay-0.1.0-release?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🎥 [Redwood in 100 Seconds](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=o5Mwa_TJ3HM)

## 💸 Sponsors

💡 [How to sponsor this newsletter](https://gist.github.com/slorber/cb732fb5d0a002c4d73236a9baeba7bb?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)

[**Axiom - Zero-Config Observability for Vercel**](https://www.axiom.co/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Axiom enables you to monitor the health and performance of your Vercel deployments by ingesting all your request, function, and web vitals data.

Use Axiom's pre-built dashboard for an overview across all your Vercel logs and vitals, drill down to specific projects and deployments, and get insight on how functions are performing with a single click. 

**PS**: [I use it myself to monitor the newsletter signups](https://twitter.com/sebastienlorber/status/1528666563452317696?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) 😉

[**Meteor's Biggest Online Event: Looking For Speakers! ☄️**](https://social.meteor.com/impact2022-speakers?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

The **Meteor Impact conference** is coming back this year and will be taking place on October 13th and 14th!

If you're new to **Meteor**, it is is an open-source framework for seamlessly building and deploying Web, Mobile, and Desktop applications in Javascript.

We anticipate this year's event to be the biggest and the best Meteor Impact conference ever!

We are now looking for speakers who are interested in participating in the conference.

You can submit your talk proposal by [clicking here](https://social.meteor.com/impact2022-speakers?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter). We hope to see you in October!

## React-Native

[**React Native JSI/TurboModules pitfalls**](https://ospfranco.com/post/2022/06/05/jsi-pitfalls/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Oscar has significant JSI exprience: he is the author of React-Native packages, and a [Youtube playlist dedicated to JSI](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=DA3KXef81sg). He gives us interesting feedback on the use of various languages ​​for the native side, or on the difficulty to benchmark appropriately JSI compared to the old bridge architecture.

**Extras:**

-   🧵 [React-Native @ Shopify](https://twitter.com/fnthawar/status/1532054866788593665?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): VP Engineering at Shopify gives update on internal usage, and the significant Shopify contribution in the ecosystem.
-   🐦 [It's Flutter but in React Native... but in ReactJS...](https://twitter.com/chrfalch/status/1534145338935853056?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): React-Native-Skia also works on the web thanks to Flutter [CanvaKit](https://skia.org/docs/user/modules/canvaskit/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🐦 [Multiplying 2 numbers: React-Native bridge vs JSI benchmark](https://twitter.com/LinguaBrowse/status/1533011223729807361?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [react-native-lightbox](https://github.com/alantoa/react-native-lightbox?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

## Other

[**WebContainers are now supported in Firefox**](https://blog.stackblitz.com/posts/webcontainers-are-now-supported-on-firefox/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

This StackBlitz's innovation allows you to run Node.js code directly in the browser, including React frameworks like Next.js, Remix, Docusaurus... It has just taken a big leap forward with this new Firefox support (in addition to Chrome).

**Extras:**

-   [WebKit Features in Safari 16 Beta](https://webkit.org/blog/12824/news-from-wwdc-webkit-features-in-safari-16-beta/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): CSS Container Queries, Web Push (in 2023) 🤯
-   [Safari Technology Preview 146](https://webkit.org/blog/12745/release-notes-for-safari-technology-preview-146/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): with [Change Array by Copy](https://twitter.com/robpalmer2/status/1532674320350191616?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) ❤️️
-   [You may not need a bundler for your NPM library](https://cmdcolin.github.io/posts/2022-05-27-youmaynotneedabundler?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Using yup and typescript for typesafe select validation](https://yidaotus.medium.com/using-yup-and-typescript-for-typesafe-select-validation-e9ee9d4bceec?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Angular 14](https://blog.angular.io/angular-v14-is-now-available-391a6db736af?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Node.js 18.3 parseArgs](https://twitter.com/simonplend/status/1532304908585779201?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Chrome - How and why we built Performance Insights](https://developer.chrome.com/articles/performance-insights/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [WebPageTest - Opportunities & Experiments](https://blog.webpagetest.org/posts/introducing-opportunities-and-experiments/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Why most design systems implode](https://storybook.js.org/blog/why-most-design-systems-implode/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
  
 
 <img width="476" alt="CleanShot 2022-06-08 at 00 06 57@2x" src="https://user-images.githubusercontent.com/749374/172491158-f06941a4-6948-4732-96b4-1c067241bd50.png">