
This tutorial walks through recreating Apple’s Liquid Glass UI on the web using SVG filters, CSS, and React. You’ll learn how to build refraction and reflection effects with custom displacement and specular maps, and how to balance performance and accessibility when using advanced filter pipelines.

tRPC solved type safety for full-stack TypeScript teams. oRPC borrowed the best parts and added interoperability. This article breaks down how both frameworks work and where each one fits best.

Check out Google’s latest AI releases, Gemini and the Antigravity AI IDE. Understand what’s new, how they work, and how they can reshape your development workflow.

Learn about Bun 1.3, which marks a shift from fast runtime to full JS toolchain—and see the impact of Anthropic’s acquisition of Bun.
Hey there, want to help make our blog better?
Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.
Sign up now
2 Replies to "How to build polymorphic components in Rust"
It looks like the code example in the Enum section omits the definition of the enum Creature. Could that be fixed or could you send me the complete example.
The dynamic dispatch section has the two lines
dynamic_dispatch(cat); // Cat is walking
dynamic_dispatch(dog); // Dog is walking
I think they should be
dynamic_dispatch(&cat); // Cat is walking
dynamic_dispatch(&dog); // Dog is walking
instead.