TikTok just released its React Native killer…
Skills:
React60%
Key Takeaways
Lynx, an open-source app development framework created by ByteDance, is compared to other cross-platform tools like React Native and Flutter for building native iOS and Android apps. Lynx claims to achieve smoother and faster performance with its dual-threaded UI rendering engine and Rust-based tooling.
Full Transcript
it's the moment we've all been waiting for a brand new game-changing blazingly Fast JavaScript framework just hit the timeline yesterday B dance the company that gave the world the gift of social media crack via Tik Tok gave the world another gift in the form of an open-source multi-platform app development framework called links developers can throw fossilized relics like react native and flutter in the garbage and rewrite their native mobile apps from scratch with shiny new rust based tooling and a high performance dual threaded UI rendering engine like react native it empowers web Developers to build shoddy IOS and Android apps with JavaScript but Lynx claims to achieve smoother Pixel Perfect uis and faster launch times compared to other crossplatform tools that's a big claim and in today's video we'll try out links and find out if it's a legit react native killer it is March 6 20125 and you're watching the code report lyns is not just another half-baked GitHub project written by a 19-year-old on prescription amphetamines it's not the terminal browser with the same name but rather a production ready framework that's already in use in hi trffic apps at Tik Tok it doesn't the main Tik Tok app where you would post your cringe Dance videos but it does power the search panel Tik Tok studio and a bunch of other ancillary apps I find this very interesting because bite dance was one of the early adopters of flutter and is still on the flutter showcase today in addition if they wanted to use web Technologies to build mobile apps why not just use something like react native ionic or native script instead of Reinventing the wheel well the unspoken reason is that creating new Frameworks gives us developers job security but the official reason in their blog post is mostly about performance performance throughout history many people have criticized react native for not feeling truly native and that's because it relies on a single-threaded JavaScript bridge that allows JavaScript code to communicate with native code like Swift on iOS or cotlin on Android but that single-threaded bridge is a big bottleneck that can create performance issues are you saying there's something wrong with my gear is that what you're saying to me the react native team has addressed this by building a custom engine called Hermes and released the fabric renderer a few years ago which some have called the new and improved Bridge or a bridgeless architecture but B dances has taken a different approach with links using a dual threaded architecture where user code and framework code are split into two distinct runtimes the main thread is powered by Prim JS which itself is built on quickjs which is a tiny 210 kilobyte JavaScript engine its job is to handle synchronous UI tasks like event handling while user code runs on a separate thread which means the crappy inefficient code you write won't block the main thread and degrade performance and the end result is instant first frame rendering for the end user or in other words no blank screens that's pretty cool but what's even more awesome is that this engine is framework agnostic you don't have to use react and could build your app and spelt view or whatever framework you want in addition it supports actual native CSS features for styling like transition animations variables gradients and so on and that's a lot more intuitive for web developers the major problem though is that there's virtually no ecosystem around this framework there's no Expo tooling to solve all your problems and there's no massive widget Library like you have in flutter that being said let's go ahead and try it out to find out if it has any any potential when you generate a project the first thing you'll notice is that it uses RS pack which is a rust based module bundler that's supposedly even faster than V that'll generate a starter template in typescript and if we look at the code it looks like a basic reactjs project where the UI is represented with HTML and CSS but if we take a closer look at the markup you'll notice we're using non-standard elements like view text and image these look like HTML tags but they actually correspond to native elements on different platforms like view is UI View and Os or View group in Android but would translate to a div on the web and what's especially awesome here is that we can use regular CSS or even tail wind to style these elements which is something you can't really do in react native although you could use tools like native wind but now let's go ahead and run it the easiest way to run it on mobile is to use the linkx Explorer app which allows you to live preview it on your phone but when I tried to compile it on Windows I immediately got an error so I tried to switch to the windows subsystem for Linux and while it compiled I could never actually get it to run on the Explorer app is so finally I had to dust off my old MacBook and everything seemed to work a lot smoother on Mac OS and as you can see here when I make changes to my code locally it'll automatically render the demo on my phone impressive very nice I think Lynx has a lot of potential and that's bad news because it means I need to rewrite all my code with this shiny new object at least I can review all that code automatically thanks to code rabbit the sponsor of today's video an AI co-pilot for code reviews that gives you instant feedback on every pool request unlike basic linters it understands your entire code base so it can can catch more subtle issues like bad code style or missing test coverage then it will suggest simple oneclick fixes to help you get things cleaned up quickly code rabbit keeps learning from your PRS over time so the more you use it the smarter it gets it's 100% free for open source projects but you can get one month free for your team using the code fireship with the link below this has been the code report thanks for watching and I will see you in the next one
Original Description
Sign up for CodeRabbit using code FIRESHIP to get get 1-month free https://bit.ly/41rLUxm
Let's take a first look at Lynx, an open-source app development framework created by ByteDance. Compare Lynx to other cross-platform tools like React Native and Flutter for building native iOS and Android apps.
#programming #tech #thecodereport
💬 Chat with Me on Discord
https://discord.gg/fireship
🔗 Resources
Lynx Docs https://lynxjs.org
React Native Expo in 100 Seconds https://youtu.be/vFW_TxKLyrE
Awesome Developer Tools https://youtu.be/qyCVCGg_3Ec
🔥 Get More Content - Upgrade to PRO
Upgrade at https://fireship.io/pro
Use code YT25 for 25% off PRO access
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- What is ByteDance Lynx?
- React Native vs Lynx
- Flutter vs Lynx
- How build mobile app with JavaScript
- React Lynx basics tutorial
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Fireship · Fireship · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Angular 4 Development and Production Environments with Firebase
Fireship
OAuth with Angular and Firebase Tutorial
Fireship
Anonymous Authentication with Angular and Firebase - Lazy Registration
Fireship
Angular Router Guards for Firebase Users
Fireship
Angular Firebase CRUD App with NoSQL Database Tutorial
Fireship
Upload Files from Angular to Firebase Storage
Fireship
How to Deploy an Angular App to Firebase Hosting
Fireship
Sharing Data between Components in Angular
Fireship
Loading Spinners for Asynchronous Firebase Data
Fireship
Angular 4 Transactional Email with Google Firebase Cloud Functions
Fireship
Firebase Database Rules Tutorial
Fireship
Autocomplete Search with Angular4 and Firebase
Fireship
Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Fireship
Angular Drag-and-Drop File Uploads to Firebase Storage
Fireship
Text Translation with Firebase Cloud Functions onWrite and Angular 4
Fireship
Custom Usernames with Firebase Authentication
Fireship
Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Fireship
Simple Pagination with Firebase and Angular 4
Fireship
How to Connect Firebase Users to their Data - 3 Methods
Fireship
Add Toast Message Notifications to your Angular App
Fireship
Facebook-Inspired Reactions System with Angular and Firebase
Fireship
Learn NgModule in Angular with Examples
Fireship
Lazy Loading Components in Angular 4
Fireship
Stripe Checkout Payments with Angular and Firebase - Part 1
Fireship
Process Stripe Payments with Firebase Cloud Functions - Part 2
Fireship
Selling Digital Content in Angular with Stripe Payments - Part 3
Fireship
Angular 4 Full Text Search with Algolia - Part 1
Fireship
Algolia with Firebase Cloud Functions - Part 2
Fireship
Firebase Phone Authentication in Angular 4
Fireship
Top 7 RxJS Concepts for Angular Developers
Fireship
Learn Angular Animations with 5 Examples
Fireship
Advanced Firebase Data Filtering (Multi-Property)
Fireship
Realtime Maps with Mapbox + Firebase + Angular
Fireship
Angular Reactive Forms with Firebase Database Backend
Fireship
Send Push Notifications in Angular with Firebase Cloud Messaging
Fireship
Top 7 Ways to Debug Angular 4 Apps
Fireship
Infinite Scroll with Angular and Firebase
Fireship
Use TypeScript with Firebase Cloud Functions
Fireship
Realtime Graphs and Charts with Plotly and Firebase
Fireship
Role-Based User Permissions in Firebase
Fireship
User Presence System in Realtime - Online, Offline, Away
Fireship
Location-based Queries with GeoFire and Angular Google Maps
Fireship
Angular ngrx Redux Quick Start Tutorial
Fireship
Angular Ngrx Effects with Firebase Database
Fireship
Progressive Web Apps with Angular
Fireship
Angular Ngrx with Firebase Google OAuth User Authentication
Fireship
RxJS Quick Start with Practical Examples
Fireship
Send SMS Text Messages with Twilio and Firebase
Fireship
Firebase Database Performance Profiling
Fireship
Native Desktop Apps with Angular and Electron
Fireship
Subscription Payments with Stripe, Angular, and Firebase
Fireship
Firestore with AngularFire5 Quick Start Tutorial
Fireship
Angular HTTP Client Quick Start Tutorial
Fireship
Google Sign-In with Firestore Custom User Data
Fireship
Star Review System from Scratch with Firestore + Angular
Fireship
Angular Chatbot with Dialogflow (API.ai)
Fireship
Learn @ngrx/entity and Feature Modules
Fireship
Infinite Scroll Pagination with Firestore
Fireship
Faster Firestore via Data Aggregation
Fireship
Contentful - CMS for Angular Progressive Web Apps
Fireship
More on: React
View skill →Related Reads
📰
📰
📰
📰
Why Vanilla JS?
In the article below, I am sharing my story of building SaaS product in vanilla js and explaining why I decided to go with this approach.
https://guseyn.com/html/posts/why-vanilla-js.html
Dev.to · Guseyn Ismayylov
How to Create a Cursor Tail Using HTML, CSS, and JavaScript
Medium · JavaScript
I built a landing page with Three.js, vanilla JS, and zero frameworks — here's what I learned
Dev.to · Ayush Shekhar
Part 1: Why I Rarely Use useEffect Anymore (and what I use instead)
Dev.to · Alejandro
🎓
Tutor Explanation
DeepCamp AI