Chance Strickland, a Senior Software Engineer and educator, shares why he still chooses React. They discuss React's unique mental model, its advantages over other frameworks, and the potential of extending it to the backend. The challenges of React hooks and state management approaches are also explored. Factors to consider when choosing React are highlighted, along with alternative options like Solid and Svelte.
React's underlying mental model of UI as a function of state still provides value, making it a fantastic choice for building software in 2023.
Understanding the rules and guidelines of React Hooks is essential to avoid potential complexities and pitfalls.
Deep dives
React's evolution and the need for alternatives
Throughout the podcast episode, Chance Strickland discusses the recent trend of React conferences featuring talks about other frameworks, highlighting the natural progression of the JavaScript ecosystem. With React being around for 10 years, developers start feeling the need to explore alternatives as the software industry evolves. However, Chance emphasizes that although other frameworks have their strengths, React's underlying mental model of UI as a function of state still provides value. He argues that React's mental model, coupled with its ecosystem strength and extensive tooling, makes it a fantastic choice for building software in 2023.
Understanding the challenges and nuances of React Hooks
Chance delves into the challenges and nuances of working with React Hooks. He discusses how developers initially struggled to make the mental shift from lifecycle methods to hooks and highlights the importance of thinking in terms of synchronization rather than lifecycles. Chance also explores issues such as the restriction on calling hooks conditionally, dealing with closures, and managing dependencies within the dependency array. By acknowledging these challenges, Chance emphasizes the need for developers to understand the rules and guidelines of hooks to avoid potential complexities and pitfalls.
Comparing React to alternative frameworks and approaches
Chance compares React to alternative frameworks like Vue.js and Solid. He acknowledges that while alternative frameworks have attempted to capture the spirit of React's mental model, they may not offer the same guarantees and simplicity. Chance notes that the mental model of React, where the UI is a function of state and updates when state changes, still provides substantial value. He discusses the trade-offs of alternative frameworks such as signals in Solid, highlighting the challenges of dealing with closures, early returns, and memoization. Despite the trade-offs, Chance reiterates that React's mental model continues to make the most sense and is the simplest way to think about application code.
React's evolving perception and developer attitudes
Chance reflects on the changing perception and attitudes towards React among developers. He notes that the current React community displays less hostility towards alternative frameworks compared to the early days of React. Developers have become more open-minded, acknowledging the merits and trade-offs of different frameworks. Chance also points out that pragmatic developers prioritize shipping software efficiently and choose the framework that best fits their needs. He encourages developers to evaluate frameworks based on their simplicity, expressiveness, and their team's preferences.
Chance Strickland, Senior Software Engineer at Replo and educator, comes back onto the show to talk about why, even in a sea of JavaScript frameworks, he still chooses to work in React.
Follow us on Apple Podcasts, fill out this form, and we’ll send you free PodRocket stickers!
What does LogRocket do?
LogRocket combines frontend monitoring, product analytics, and session replay to help software teams deliver the ideal product experience. Try LogRocket for free today.
Special Guest: Chance Strickland.
Get the Snipd podcast app
Unlock the knowledge in podcasts with the podcast player of the future.
AI-powered podcast player
Listen to all your favourite podcasts with AI-powered features
Discover highlights
Listen to the best highlights from the podcasts you love and dive into the full episode
Save any moment
Hear something you like? Tap your headphones to save it with AI-generated key takeaways
Share & Export
Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more
AI-powered podcast player
Listen to all your favourite podcasts with AI-powered features
Discover highlights
Listen to the best highlights from the podcasts you love and dive into the full episode