<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Haroon arif Bhati on Medium]]></title>
        <description><![CDATA[Stories by Haroon arif Bhati on Medium]]></description>
        <link>https://medium.com/@haroonarif.bhati?source=rss-1ee283c0995e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YGhOmIEzLCTfuuA4</url>
            <title>Stories by Haroon arif Bhati on Medium</title>
            <link>https://medium.com/@haroonarif.bhati?source=rss-1ee283c0995e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 14:27:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haroonarif.bhati/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to make counter app web in Mendix(low-code)?]]></title>
            <link>https://medium.com/@haroonarif.bhati/how-to-make-counter-app-web-in-mendix-low-code-2d750456f98a?source=rss-1ee283c0995e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d750456f98a</guid>
            <dc:creator><![CDATA[Haroon arif Bhati]]></dc:creator>
            <pubDate>Wed, 09 Jul 2025 21:04:49 GMT</pubDate>
            <atom:updated>2025-07-09T21:04:49.218Z</atom:updated>
            <content:encoded><![CDATA[<h3>✅ Step-by-Step Guide</h3><h3>✅ Step 1: Create a New Mendix App</h3><ol><li>Open Mendix Studio or Studio Pro.</li><li>Click <strong>New App</strong> → choose <strong>Blank App</strong> or any template you like.</li><li>Name your app, e.g., CounterApp.</li></ol><h3>✅ Step 2: Create a Domain Model (Data Model)</h3><ol><li>Go to the <strong>“Domain Model”</strong> under your module (e.g., MyFirstModule).</li><li>Right-click → <strong>Add Entity</strong> → name it Counter.</li><li>Inside Counter:</li></ol><ul><li>Add an attribute:</li><li>Name: Value</li><li>Type: Integer</li><li>Default: 0</li></ul><ol><li>Check “Persistable” if you want to save data permanently. You can uncheck it if you only want a temporary counter.</li></ol><h3>✅ Step 3: Create a Page</h3><ol><li>Go to <strong>Pages</strong> → Right-click → <strong>Add Page</strong>.</li><li>Choose a <strong>Blank Page</strong> or “Popup Layout”.</li><li>Name it: CounterPage.</li></ol><h3>✅ Step 4: Add a Data View to the Page</h3><ol><li>Drag a <strong>Data View</strong> onto the page.</li><li>It will ask for a data source:</li></ol><ul><li>Choose <strong>“Create object”</strong>.</li><li>Select the Counter entity.</li></ul><ol><li>Inside the Data View:</li></ol><ul><li>Drag a <strong>Text</strong> widget → bind it to Counter/Value.</li><li>This will show the current count.</li></ul><h3>✅ Step 5: Add Buttons</h3><p>Inside the Data View, add two <strong>Buttons</strong>:</p><ul><li><strong>Button 1: “Increase”</strong></li><li><strong>Button 2: “Decrease”</strong></li></ul><p>We’ll now connect these to microflows to update the counter.</p><h3>✅ Step 6: Create Microflows</h3><h4>🔼 Microflow to Increase Count</h4><ol><li>Right-click <strong>Microflows</strong> → Add Microflow → Name: IncreaseCount.</li><li>Parameters: Add an input parameter of type Counter.</li><li>Inside:</li></ol><ul><li>Add a <strong>Change Object</strong> activity:</li><li>Object: Counter</li><li>Member: Value = $Counter/Value + 1</li></ul><ol><li>Add an <strong>End Event</strong>.</li></ol><h4>🔽 Microflow to Decrease Count</h4><ol><li>Create another microflow → Name: DecreaseCount.</li><li>Same as above, but:</li></ol><ul><li>Value = $Counter/Value - 1</li></ul><h3>✅ Step 7: Connect Buttons to Microflows</h3><ol><li>Select the <strong>“Increase”</strong> button → in properties:</li></ol><ul><li>Action: <strong>Call Microflow</strong></li><li>Microflow: IncreaseCount</li><li>Pass the Counter object</li></ul><ol><li>Do the same for the <strong>“Decrease”</strong> button.</li></ol><h3>✅ Step 8: Run Your App</h3><ol><li>Click <strong>Run Locally</strong> (green play button).</li><li>Open the app in browser.</li><li>Click Increase/Decrease → your counter updates live!</li></ol><h3>🎁 BONUS: Make It Look Better</h3><ul><li>Add <strong>styling classes</strong> like btn-primary, margins, or spacing using containers.</li><li>Add a title or explanation.</li><li>Use a layout with header/footer.</li></ul><h3>💬 Recap</h3><p>StepAction1Create Counter entity with Value (integer)2Build a page with a Data View3Add buttons to Increase/Decrease4Create microflows to change the value5Bind buttons to those microflows6Run and test the app</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d750456f98a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Performance & Architecture Patterns (Simplified)]]></title>
            <link>https://medium.com/@haroonarif.bhati/react-performance-architecture-patterns-simplified-1258552cf764?source=rss-1ee283c0995e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1258552cf764</guid>
            <dc:creator><![CDATA[Haroon arif Bhati]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 21:57:23 GMT</pubDate>
            <atom:updated>2025-07-01T21:57:23.227Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a breakdown of key architecture and performance patterns you should follow when building professional React applications.</p><h3>1. Component Architecture</h3><ul><li>Use <strong>function components</strong> with <strong>hooks</strong></li><li>Break UI into <strong>small, reusable</strong> component</li><li>Use <strong>container vs presentational</strong> patter</li><li><strong>Co-locate</strong> logic and state with the component</li></ul><h3>2. State Management Strategy</h3><ul><li>Use useState or useReducer for <strong>local state</strong></li><li>Use Context API only for <strong>rare global state</strong> (like theme/auth)</li><li>Use <strong>React Query</strong>, <strong>Zustand</strong>, or <strong>Redux Toolkit</strong> for shared or async data</li><li>Extract logic into <strong>custom hooks</strong> (useProduct, useForm, etc.</li></ul><h3>3. Performance Optimization</h3><ul><li><strong>Lazy load</strong> components with React.lazy() and Suspense</li><li>Use React.memo, useMemo, useCallback to avoid unnecessary renders</li><li><strong>Virtualize</strong> long lists (react-window, react-virtual)</li><li>Use <strong>React DevTools Profiler</strong> to detect slow components</li></ul><h3>4. Folder Structure (Scalable)</h3><pre>bas/src<br>  /components    → Reusable UI<br>  /features      → Business logic per module<br>  /hooks         → Custom hooks<br>  /services      → API calls<br>  /pages         → Page-level components<br>  /utils         → Helper functions</pre><h3>5. Best Practices</h3><ul><li>Write in <strong>TypeScript</strong></li><li>Handle <strong>loading / error / empty</strong> states</li><li>Avoid <strong>prop drilling</strong> — use state lifting or context</li><li>Keep <strong>forms controlled</strong></li><li>Follow <strong>a11y</strong> (accessibility) practices</li></ul><h3>6. Error Handling</h3><ul><li>Use <strong>error boundaries</strong> to catch runtime errors</li><li>Handle <strong>async errors</strong> with fallback UI (try/catch or query error states)</li><li>Log errors (consider Sentry or custom logging)</li></ul><h3>7. Testing</h3><ul><li>Use <strong>React Testing Library</strong> for testing UI behavior</li><li>Write <strong>unit + integration</strong> tests for logic and workflows</li><li>Avoid testing internal implementation</li></ul><h3>8. Useful Tools</h3><ul><li><strong>React Query / TanStack Query</strong> — async state + caching</li><li><strong>Storybook</strong> — build UI in isolation</li><li><strong>ESLint + Prettier</strong> — clean and consistent code</li><li><strong>Vite / Next.js</strong> — fast, modern dev environments</li></ul><h3>9. Code Organization Tips</h3><ul><li>Use <strong>custom hooks</strong> for reusable logic</li><li>Keep <strong>API logic</strong> in services/ (abstracted and reusable)</li><li>Separate <strong>view</strong> (JSX) and <strong>logic</strong> (hooks/services)</li></ul><h3>10. Checklist for Every Component</h3><ul><li>Is it small and reusable?</li><li>Does it handle edge cases (loading, error)?</li><li>Is state scoped locally?</li><li>Is it memoized if needed?</li><li>Does it follow accessibility best practices?</li></ul><h3>Summary</h3><p>If you’re working on production-ready React apps, use these principles to:</p><ul><li>Keep your code <strong>clean</strong></li><li>Ensure it’s <strong>performant</strong></li><li>Make it <strong>easy to scale</strong> and <strong>maintain</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1258552cf764" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>