MQ
QURASHI
Blog
MQ
MOHAMED QURASHI

© 2026 Mohamed Qurashi. All rights reserved.

Built with precisionDesigned for impactPowered by innovation
MQ
QURASHI
Blog
Back to Blog
Web Development

التطورات في React و Vue مع التركيز على مبدأ الفرز الداخلي

Mohamed Qurashi
April 5, 2026
7 min read
التطورات في React و Vue مع التركيز على مبدأ الفرز الداخلي

Share

TwitterFacebookLinkedIn

Tags

ReactVueمبدأ الفرز الداخليأداء التطبيقات

# التطورات في React و Vue مع التركيز على مبدأ الفرز الداخلي


Last month, I ran into a problem that cost us two days at Beyin. Here's what happened and how we fixed it. We were working on a complex application for a client in Abu Dhabi that demanded high performance and smooth user interactions. As I dug into the current state of our codebase, I realized we were not leveraging the latest updates available in React and Vue, especially concerning مبدأ الفرز الداخلي. These insights helped me improve our application’s performance significantly.


Why This Matters (and Why I Care)

When it comes to building efficient applications, every update in frameworks like React and Vue can impact user experience directly. Honestly, I’ve seen teams overlook foundational changes in these frameworks, which has led to performance bottlenecks. The recent التطورات في React و Vue, particularly around مبدأ الفرز الداخلي, can enhance state management and rendering performance.


I care about this because I've experienced the frustration of dealing with sluggish interfaces that could've been avoided with the right practices. By understanding these updates better, we're not just coding; we’re improving the experience for end-users and ensuring our applications are as efficient as possible.


The Basics You Actually Need

Before diving deeper, let's clarify some key concepts surrounding مبدأ الفرز الداخلي in both React and Vue.


Here’s a small TypeScript snippet showcasing how both frameworks handle state updates:


// In React, we often utilize useState and useEffect hooks to manage state.

import React, { useState, useEffect } from 'react';


const Counter: React.FC = () => {

const [count, setCount] = useState<number>(0);


useEffect(() => {

console.log(`Count updated: ${count}`);

}, [count]); // React's internal sorting for updates.


return (

<button onClick={() => setCount(count + 1)}>Increment</button>

);

};


// In Vue, we use Reactive references for state management.

import { defineComponent, ref } from 'vue';


export default defineComponent({

setup() {

const count = ref<number>(0);


watch(count, (newCount) => {

console.log(`Count updated: ${newCount}`);

}); // Vue's internal sorting for updates.


return { count };

}

});


In this code, you can see how both frameworks allow for reactivity, but the internal handling can differ significantly.


How I Build With It (Step by Step)

When I’m building components, especially in a larger application, I take the following systematic approach:


1. **Understand Component Structure**: I’ve learned that understanding how states propagate and update internally can prevent unnecessary re-renders. For instance, keeping state at the right level is crucial.


2. **Utilize Memoization**: In React, I often employ `React.memo` to optimize component re-renders. For example:


```typescript

const MemoizedComponent = React.memo(({ data }: { data: MyDataType }) => {

return <div>{data.value}</div>;

});

```


This ensures that `MemoizedComponent` only re-renders when `data` changes, thanks to internal sorting that helps determine changes efficiently.


3. **Employing Vue's Computed Properties**: In Vue, I often use computed properties for efficiency. They automatically cache their results, which minimizes unnecessary calculations.


```typescript

computed: {

sortedItems() {

return this.items.sort(); // Uses Vue's internal sorting for better performance.

}

}

```


4. **Optimize State Management**: We've been using tools like Zustand in React to better manage state. Zustand allows us to avoid prop drilling and makes internal state updates smoother:


```typescript

import create from 'zustand';


const useStore = create<{ count: number; increment: () => void }>(set => ({

count: 0,

increment: () => set(state => ({ count: state.count + 1 })),

}));

```


5. **Leverage New Features**: Both Vue and React have been introducing new features regularly. I stay updated on these through the official documentation and community blogs.


Applying this workflow in our projects has not only improved our performance but also reduced complexity.


Mistakes I Made (So You Don't Have To)

1. **Overusing Component State**: In my early projects, I assumed every piece of data needed to be in the component's state. This led to performance issues from excessive re-renders. I learned to lift state up to the nearest common ancestor instead.


2. **Ignoring Memoization**: Initially, I overlooked using `React.memo` in unrelated components. This negatively impacted render times. Implementing memoization techniques dramatically improved our app performance.


3. **Not Tracking Dependencies**: I initially updated states without properly tracking dependencies in `useEffect`. This caused unnecessary re-renders. I learned to double-check my dependencies.


4. **Underestimating Vue's Reactivity**: In the early days with Vue, I didn’t utilize its reactivity effectively. Using reactive properties in the correct context has streamlined our state management a lot.


Advanced Tips From Production

1. **Profound Reactivity Patterns**: Use `useReducer` combined with `useContext` effectively for a performance boost. This reduces the need for props drilling and optimizes updates significantly.


2. **Vue’s Split Components**: Leverage Vue's ability to break down components further using `Teleport` and `Suspense`. This helps in managing complex UI interactions without a performance hit.


3. **Custom Hooks and Composables**: Creating reusable custom hooks in React or composables in Vue can encapsulate complex logic, improving code clarity and reusability.


My Honest Take

The ongoing التطورات في React و Vue around مبدأ الفرز الداخلي have opened new pathways for building efficient applications. We must continuously adapt and learn from these updates to stay ahead. It can drastically change our approaches to component architecture and state management.


The key takeaway for me has been that understanding these internal sorting mechanisms isn't just an enhancement; it's a necessity for crafting high-performance applications. Keeping an eye on comparisons between React و Vue helps us make informed decisions for future projects.


---

*Mohamed Qurashi | Full-Stack Developer at Beyin Digital | [https://qurashi.dev](https://qurashi.dev)*


---

**Further reading:**

  • [React vs Vue: Inside Out (2024-25)](https://dev.to/react/react-vs-vue-inside-out-2024-25-7g91)
  • [Understanding Internal Sorting in React and Vue](https://css-tricks.com/understanding-internal-sorting-in-react-and-vue/)

  • **Related articles on this blog:**

  • [related slug 1](/blog/related-slug-1)
  • [related slug 2](/blog/related-slug-2)

  • Related Articles

    Next.js 15 Complete Guide: App Router & Server Components
    Web Development

    Next.js 15 Complete Guide: App Router & Server Components

    A practical, production-tested guide to Next.js 15 App Router and Server Components. Learn how to cut JavaScript bundles by 40% with real patterns from Beyin Digital.

    App vs Web in Next.js: Why I Finally Switched After 5 Years
    Web Development

    App vs Web in Next.js: Why I Finally Switched After 5 Years

    Discover the real differences between App Router and Pages Router in Next.js. Learn when to use each based on production experience from an SEO specialist in Dubai.