Enhancing your Static Sites with React Server Components
![React Nexus](https://wsrv.nl/?url=pbs.twimg.com/profile_images/1619615009189015552/3-y9BaXP_400x400.png)
React Nexus conference was back this year(2024) and I was excited to be delivering a fascinating talk related to React Server Components and static sites. I also delivered a talk at React Nexus 2023 and having attended two consecutive editions of the conference, I could immediately see a lot of improvements in how the conference was organized this year. The AV setup was much better, the schedule was well planned, the talks covered diverse topics and overall it felt much smoother.
I was extremely scared for this talk. It was one of the first talks of the conference, and I was running late. I had just finished my slides the day before which took a lot of effort because of all the code and animations in it. I still wasn’t sure if the content and the flow were right. Thankfully, the talk went smoothly and the audience liked it! Even I felt it went much better than some of my other talks and it covered everything I had in mind after watching the live stream later that day.
About the talk
In this talk, I went over how React Server Components fit in the world of static sites. Static sites seem to have fallen under the radar, especially in the React community. With React “server” components, Next.js and Remix going all in on server-rendered sites, and the inactivity of Gatsby framework, it feels like React is no longer a library of choice for building static sites.
Having played around with React server components in some of my side projects, I felt there was a misconception in the React community about what this new feature was. A part of it
has to do with its name. React server components in a nut-shell is a way to run async logic before UI is sent to the client. This async logic can be anything from data fetching to heavy
computations, build-time processing, and more! What’s interesting is that a lot of what React server components unlock is closely related to what the static site community has been wanting
for years. React Frameworks like Next.js and Gatsby had their solutions for data fetching and build-time processing but they always had quirky limitations of being restricted
to page-level components, or in the case of Gatsby one occurrence of useStaticQuery()
hook per file!
Do give the talk a watch and share your thoughts with me on Twitter. The audience was able to resonate with my talk and they liked the fact I was able to clearly explain my thoughts by keeping the content balanced in complexity 💙
Post-conf thoughts
I met some of my old friends and many new folks at React Nexus. From the speakers to the audience, I had interesting conversations with almost everyone. It was humbling to know that the community follows and appreciates the work I do. Huge thanks to Kiran and the entire volunteering team behind React Nexus for having me as a speaker and making the event a success! Looking forward to React Nexus 2025.
![Me!](/static/7216002d06615c47f9da8b0a17bc711a/9cae2/react-nexus-2024-1.webp)
![Me delivering my talk](/static/4b1c9970e3e9538030da741ac3064c01/66516/react-nexus-2024-3.webp)
![React Nexus 2024 speakers group photo](/static/469410ecf8e0fb38a5cec469e0fee034/66516/react-nexus-2024-4.webp)
![Me talking to two incredible students](/static/ab907b759f1c3126810729401554e95e/66516/react-nexus-2024-2.webp)
![Me with Mohit (@MohitToshniwal)](/static/c60e932a8ba5ffe40a05bf16730e2807/c3710/react-nexus-2024-6.webp)
![Me with Ramanpreet (@ramanpreet6262) and Darsh (@iamdarshshah)](/static/61379466acd6ad3be473731edf3063e4/44a43/react-nexus-2024-5.webp)
References
These are some of the finest resources to understand React Server Components. I also found them really useful for preparing this talk.
- Making Sense of React Server Components article by Josh W Comeau
- React for Two Computers talk by Dan Abramov