Build UIs that learn - Discover the powerful combination of UI and AI
Is lazy loading enough? What if your app could predict a user's next click and load the code before they even ask?
#1about 2 minutes
Solving slow load times in single-page apps
React's lazy loading API helps with initial load times but introduces delays when components are actually rendered.
#2about 3 minutes
Prefetching components by predicting user actions
Improve user experience by using dynamic imports to prefetch components or entire routes before the user requests them.
#3about 2 minutes
Applying machine learning to user sequence prediction
Frame user navigation as a sequence prediction problem where the model learns from click history to predict the next action.
#4about 4 minutes
Implementing a neural network with TensorFlow.js
Build a neural network in the browser using TensorFlow.js with LSTM layers and one-hot encoding to handle sequential user interaction data.
#5about 1 minute
Training the prediction model asynchronously in the browser
Use the asynchronous `.fit()` command in TensorFlow.js to train the model with user data in the background without blocking the UI.
#6about 7 minutes
Architecting the solution with the React Context API
Use a `PredictorContext` for ML logic and a `PrefetchContext` as a message bus to decouple prediction triggers from prefetching actions across the application.
#7about 3 minutes
Summary of key techniques for a self-learning UI
A recap of combining React's code splitting, TensorFlow.js for prediction, and Context API for a robust, performance-oriented architecture.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
02:43 MIN
Implementing code splitting and lazy loading for faster initial loads
How Your Bundle Size Affects The Climate
01:18 MIN
Why developers and businesses choose to use React
React and the power of visualisation
01:24 MIN
Solving UI challenges with a modern tech stack
Building Interactive Async UI with React 19 and Ariakit
03:28 MIN
Best practices and the future of browser AI
Privacy-first in-browser Generative AI web apps: offline-ready, future-proof, standards-based
02:54 MIN
Enhancing runtime performance with CSS and UX
The Illusion of a Performant Web Application
01:45 MIN
Demo code and using web workers for performance
Privacy-first in-browser Generative AI web apps: offline-ready, future-proof, standards-based
01:58 MIN
Building with familiar React APIs and real CSS
Lynx: Native for More
02:20 MIN
The technology behind in-browser AI execution
Generative AI power on the web: making web apps smarter with WebGPU and WebNN
How we Build The Software of TomorrowWelcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Thomas Dohmke who introduced us to the future of AI – coding.This is how Thomas describes himself:I am the CEO of GitHub and drive the company’s...
Chris Heilmann
Accessibility tip: Detecting reduced motion in one line of JavaScriptAnimation can be a great tool to make apps seem more performant, be more engaging or even just more interesting. There are, however, quite a few groups of people who can not deal with things animating, as it distracts them or can even cause nausea. T...
Luis Minvielle
The Best Upcoming IT WebinarsNow that you already know what IT webinars are and how they can help you level up your professional appeal, you might want actually to get into one. Live tech webinars are one of the best ways to stay on top of the latest trends and tools because eit...
Ashutosh Mishra
16 Best Free React UI Libraries in 2025Web development is moving incredibly fast. New features pop up all the time, but there's one constant issue that keeps coming up: keeping your app's interface looking attractive and impressive. While new features are born and killed as the project gr...
From learning to earning
Jobs that call for the skills explored in this talk.