Last Thursday, we had our second ever RK Lightning event at HackerspaceSG 🎉. Here's Wei's recap 👩🏻🌾
💄 Build a Gatsby Theme and publish #13
Raj kicked off the lightning talks with his second live demo with Gatsby, this time building a Gatsby Theme of a site with a like button. What is your one liner for Gatsby Themes? Secretly, I called them partials. After last Thursday's talk, I think of them as a way to communicate with common features via a version number now.
first up, @email2vimalraj live coding how to build a gatsby theme with a simple like button— React Knowledgeable (@reknowledgeable) September 5, 2019
with gatsby theme, you can abstract & reuse common features to a package communicate with it as a dependency via a version number pic.twitter.com/QUw259iF9X
👞 Dancing with React Hooks #2
Next, we had our most magical Van to talk about what she learned about hooks by creating those little dancers with funny walk moves on the screen. Joyfully surprising everybody she demoed the moon walk 😂 The characters she created in her stage have exactly her style and that leads to her other talk at SingaporeCSS, The Joy of Doing Things without the Need for Justification - (oh look at her newest avatar, it has her MJ hat now!) For this talk, she then dived into what she learned about hooks, how to make setInterval and useEffect have peace, and her take on understanding hooks.
We took a question break. I had a nice conversation with Yangshun, who has me for Docusaurus but it was actually the first time we met in person! The question break also featured popcorns popped by Valentine from Hackerspace our host, and stickers exchange!
🦖 How Modern Static Site Generators Work #11
Yangshun talked about how modern static site generators are built. They share some intrinsic similarities with each other, and they differ from traditional ones. It seems that Yangshun has learned those by building Docusaurus 2 😉
- video (to be updated)
👥 Are React and CSS Friends? #14
Then, I shared about styling sites with React, how React changes the way we write styles, and a mind model that makes sense for me to style my projects, including our site.
🤕 Battle Stories: Portals #16
Then finally, Thomas took up the last spot (15 mins before 9!) and shared a problem he encountered – communicating styles between page and iframe embedded modal.
🤞 Till next time
Our night snack was indian food at ABC, fun promised, our tables were tilted this time!
RK is a fun and friendly podium to share what we learn about React. The best way to participate is to speak at RK, share with us what is sparkling interesting to you. Hope to hear from you next month!
React updates of the month
- more UNSAFE_ lifecycle methods
- deprecated unheardof stuff
- acync act() for testing
- Performance Measurements with <React.Profiler>
- need to wait longer for a combined release of concurrent mode + suspense for data
¯\_(ツ)_/¯i am not even surprised
My friend Nut doesn't like it because it no longer has the very reactive re-render component highlight. Although the "why my component rerenders" under profiler tab looks really shiok.
🥯 Flow v0.106 Coming Soon: Changes to Object Spreads
- the current model is based on an assumption that inexact object types do not specify own-ness, this makes properties from spread become optional because object spread at run time copies only own properties
- the new model assumes inexact object types specify own-ness on specified properties, therefore following our intuition of object spread more closely
- inexact objects may contain more properties that may overwrite existing properties in spread target
- the new model will err, tell us what happens, and ask if we can make the spreaded object exact
I got involved with a twitter thread the other day. There was some voice saying Flow is dead. Flow is not dead my lovely people :) Flow is happily wedded with React. They live under the same household, and guess who gets to officially support React v16.9 Profiler first?