MTCCRM

Power Apps Code-First Development with React: The Complete 2026 Guide  PART 1

Power Apps code-first development — delivered through Power Apps code apps — lets professional developers build enterprise-grade Single-Page Applications (SPAs) using React, Vue, or any JavaScript/TypeScript framework, directly inside Visual Studio Code, and publish them into the secure, governed Microsoft Power Platform ecosystem.

For years, Microsoft Power Apps was the go-to platform for rapid low-code app development. But canvas and model-driven apps have real ceilings: limited custom UI control, performance bottlenecks at scale, and development workflows that don’t fit naturally into modern DevOps pipelines.

With code apps, you write your application entirely in code — using React, Vue, TypeScript, and your preferred IDE — while still publishing and hosting within the managed Microsoft Power Platform environment. You get the freedom and flexibility of modern web development, combined with the governance, security, and connectivity of Power Platform.

In this two-part series, we cover everything you need to know about Power Apps code-first development. This part walks through what code apps are, why they matter, how they work architecturally, and how to set up your first project. In Part 2, we apply it to a real-world build: a fully functional Property Management System (PMS) built by our MTC team.

The world of app development now spans a wide spectrum — from prompt-based AI tools (fast, lightweight apps with built-in chat) to AI-assisted full-stack platforms built for professional developers creating enterprise-ready solutions.

Tools such as ChatGPT, Claude, and Replit sit at the prompt-based end. At the professional end you find platforms like GitHub Copilot, Cursor, Supabase, and — firmly positioned here — Microsoft Power Apps code apps.

Microsoft Power Platform offers a range of tools across this spectrum:

ToolAudienceApproach
Copilot App BuilderEnd-usersNo-code, prompt-driven
Power Apps StudioMakersLow-code, visual designer
Power Apps Code AppsDevelopersPro-code, IDE-based

A Power Apps code app is a Single-Page Application (SPA) built in a developer IDE — such as Visual Studio Code — using JavaScript or TypeScript. Unlike canvas apps, which are built through a visual drag-and-drop studio, code apps are written entirely in code, giving developers full control over UI and application logic.

  • Code-first freedom: Build SPAs using React, Vue, or any JavaScript/TypeScript framework of your choice.
  • 1,400+ connectors out of the box: Access the full Power Platform connector library from your code using auto-generated, strongly-typed models and services.
  • Microsoft Entra authentication — zero code required: No App Registration co-ordination with IT needed.
  • Auto-generated models and services: The Power Apps CLI reads your connector configuration and generates typed data models, eliminating significant boilerplate.
  • Publish to Power Platform cloud: Deploy to a fully managed cloud service with built-in reliability, resilience, and global CDN.
  • Managed governance, security, and operations: Inherits the full Power Platform Managed Platform — DLP policies, Conditional Access, app inventory, sharing limits, and Monitor.
  • Full ALM lifecycle support: Ship via Power Platform Pipelines, integrate with Azure DevOps or GitHub Actions, and track app health in Monitor.

Power Apps code-first development is the right choice for:

AudienceWhy It Fits
Professional DevelopersFamiliar tooling (VS Code, npm, Git), modern frameworks (React, Vue), no low-code constraints
IT TeamsSame managed governance, security, and compliance as canvas apps — no shadow IT
ISVs and Technology PartnersScalable, customisable, client-ready solutions built on a governed enterprise platform
Organisations with Complex RequirementsFine-grained UI control, custom visualisations, and performance beyond what canvas apps allow

With Power Apps code-first development, you work entirely in Visual Studio Code (or your preferred IDE), using npm, Git, and the Power Apps CLI — tools that are second nature to any modern developer. No fighting a proprietary low-code studio to achieve what is trivial in code.

One of the most powerful aspects of code apps is calling Power Platform connectors directly from JavaScript or TypeScript. This means connecting to Microsoft Dataverse, SharePoint, Azure services, and hundreds of third-party platforms without writing complex API integration code from scratch.

Important: Not all connectors are available for code apps yet. Verify that your required connectors are supported before starting your project — check the official connector documentation.

Power Apps code apps inherit the full Power Platform security model:

  • Microsoft Entra authentication and authorisation
  • Role-based access control
  • Conditional Access policies
  • Data Loss Prevention (DLP) enforcement
  • Tenant isolation and Azure B2B support for external users

Publishing a Power Apps code app is as simple as running a CLI command. Your app is deployed to Power Platform and immediately benefits from the same ALM tooling as any other Power Platform solution — solution packages, environment management, and deployment pipelines included.

5. Future-Proof, Portable Architecture

Building with React, Vue, and TypeScript means your codebase is portable, maintainable, and backed by a vast global developer community. You are not locked into proprietary tooling.

A common question from developers is: “Why not deploy a React app to Azure Static Web Apps or App Service?” You absolutely can — but replicating what Power Platform provides out of the box requires significant engineering effort. Here is the direct comparison:

CapabilityPower Apps Code AppsAzure / Cloud PaaS
Development experienceIdea-to-published in hours; built-in Power Platform stackFull stack configuration required; App Registrations need IT co-ordination
AuthenticationBuilt-in MS Entra — zero code requiredCustom configuration or code required
Connectivity1,400+ connectors out of the boxSDK or API integration per data source
Data layerDataverse includedNo built-in data layer (Azure SQL is standalone)
HostingCloud service with disaster recovery and CDN built-inManual wiring of services; traffic manager setup required for multi-region
DeploymentPipelines included with Managed Environments; optional DevOps/GitHub integrationCI/CD requires Azure DevOps or GitHub setup
End-user accessWeb — just share the appWeb only; requires Azure configuration
GovernanceEnterprise-grade PPAC and Managed EnvironmentsRequires custom code and config for parity

The verdict: Power Apps code apps are the fastest path to an enterprise line-of-business app for organisations already on the Microsoft stack. Cloud PaaS gives you maximum flexibility — but you pay for that with time, expertise, and ongoing operational overhead.

Understanding the underlying architecture helps you make better design decisions and debug issues faster. There are two phases: development and runtime.

Development Phase: Your App + the Power Apps SDK

When building, a Power Apps code app project consists of three components:

  1. Your code — a TypeScript/JavaScript SPA (React or Vue components, pages, and business logic)
  2. The Power Apps CLI (pac) — scaffolds the project, creates a power.config.json file, and generates strongly-typed models and services for every connector you add
  3. The Power Apps SDK — imported into your project; handles local communication with Power Platform services so your app works during npm run start

The power.config.json file is the bridge between your code and Power Platform. The CLI reads it to know which environment and connectors your app uses, and regenerates the typed models every time you add a new connector.

When a user opens your published app, three runtime components work together:

  1. Your compiled code — bundled JavaScript deployed to Power Platform storage
  2. The Power Apps SDK — bundled with your app; communicates securely with the host
  3. The Power Apps host — the Power Apps web shell managing authentication, app loading, and governance enforcement

Your app runs inside a sandboxed iframe within the Power Apps host, protected by a two-layer Content Security Policy (CSP):

  • Host-level CSP — prevents undesired embedding; your app runs from apps.powerapps.com
  • iframe-level CSP — blocks rogue network calls and insecure JavaScript patterns, protecting against data exfiltration

Admins can configure CSP to be more or less permissive depending on organisational security requirements.

One of the strongest reasons to choose Power Apps code apps over a DIY cloud deployment is the Power Platform Managed Platform — the same governance, operations, and security layer that manages all other Power Apps.

  • “Solution aware” — package and deploy via Power Platform solutions
  • Pipeline deployments included with Managed Environments
  • Health metrics and alerts in Monitor
  • Coming soon: Solution Pack/Unpack support for source control

  • Appear in Admin Centre inventory alongside all other apps
  • Honour sharing limits and app quarantine settings
  • Support Azure B2B users for external access
  • Comply with Data Loss Prevention (DLP) policies

  • Respect tenant isolation
  • Apply default Content Security Policy (configurable by admin)
  • Enforce Conditional Access Policies

Your IT team gets the same visibility and control over a code app as they do over any canvas or model-driven app — with no shadow IT, no bespoke security reviews, and no custom governance code to write.

The best validation of any technology is whether it holds up in production, a global engineering and technology company, found that traditional Power Apps hit real limits for their complex engineering applications — and chose code apps to break through.

Pain PointDetail
UX & Domain ComplexityLarge unit-of-measure calculations and process flow visualisations required PCF controls, adding significant ALM overhead
Performance & ScaleNo custom components inside Galleries; slow PCF updates; poor performance when embedding Canvas apps in Model-Driven Apps across many records
Developer Experience & ALMGit code reviews on app artifacts were developer-unfriendly; reuse at scale was cumbersome; no proper unit testing of client logic

Global Engineering Technology describe their shift to code apps using the acronym FAST:

  • F — Faster performance: Full control of data loading and client-side caching; built-in security, connectors, and Dataverse from day one
  • A — Agility: Reusable React components shared across apps; direct use of React visualisation libraries without wrapping in PCF
  • S — Speed of delivery: A new app built in approximately 120 hours versus over 18 months using their previous approach; GitHub Copilot enabled a Chemical Engineer (not a professional developer) to independently build complex apps
  • T — Testing: Real unit and automated testing; proper PR code reviews; full browser developer console access for debugging

Key takeaway: A domain expert with no formal software engineering background built a production-grade hydraulics calculation app using Power Apps code apps and GitHub Copilot. That is the promise of combining enterprise scaffolding with modern AI-assisted development tools.

Before building your first Power Apps code app, ensure the following are in place:

Developer Tools

  • Visual Studio Code (or your preferred IDE)
  • Node.js (LTS version recommended)
  • Power Apps CLI — or, from v1.0.4 onwards, the npm-based CLI built into the @microsoft/power-apps client library
  • Git and npm available on the command line
  • dotnet runtime

Pro Tip: From Power Apps client library v1.0.4, the new npm-based CLI simplifies setup significantly. The older pac code commands will be deprecated in a future release — transition now to stay ahead.

  • Power Platform environment with code apps enabled by an administrator
  • Power Apps Premium licence for all end-users of the app

Install Visual Studio Code, Node.js, and the Power Apps CLI following the official Microsoft setup guide. Confirm all tools are accessible from your command line before proceeding.

Only administrators can enable code apps for a given environment:

  1. Sign in to the Power Platform Admin Centre.
  2. Navigate to Manage > Environments and select your target environment.
  3. Go to Settings > Product > Features.
  4. Locate the Power Apps code apps toggle and switch it On.
  5. Click Save.

Create a new code app project in seconds:

npx @microsoft/power-apps create –name MyFirstCodeApp

Choose your preferred framework — React is recommended for beginners, though Vue and other JavaScript frameworks are fully supported. The CLI generates a ready-to-build project structure.

During local development, authenticate with your Power Platform environment via the CLI and configure your data sources. The client library provides built-in connectors you can call directly from your JavaScript or TypeScript files.

Start the development server to preview your app in the browser:

npm run start

When ready, deploy with a single command:

npm run deploy

Your Power Apps code app will appear in the Power Apps portal, ready to share with users.

Current Limitations of Power Apps Code Apps (April 2026)

Power Apps code apps are generally available and production-ready, but some limitations remain as of April 2026:

LimitationDetail
No Offline ModeCode apps require an active internet connection at all times. Canvas apps remain the choice for offline scenarios.
Limited Connector SupportNot all Power Platform connectors are available for code apps yet. Verify your required connectors before starting your project.
No Mobile App SupportCode apps are not supported in the Power Apps mobile app or Power Apps for Windows (browser only). Mobile support is not expected before mid-2026.
No Power Platform Git IntegrationGit integration for other Power Platform assets does not yet extend to code apps.
No SharePoint Forms IntegrationCode apps cannot replace SharePoint form integrations.
No Power BI Data IntegrationThe PowerBIIntegration function is not supported, though code apps can be embedded in Power BI using the Power Apps Visual.
Limited $expand SupportOData $expand queries are not yet reliably supported. This is on the Microsoft roadmap.

Many of these limitations are known gaps on the Microsoft product roadmap, and several are expected to be addressed in upcoming releases.

Yes. Power Apps code apps reached General Availability (GA) on 5 February 2026, as announced by the Microsoft Power Platform team. The feature is fully supported for production use across enterprise environments.

Some individual capabilities — including mobile support, FetchXML queries, and $expand — remain under active development. Always check the official Power Apps code apps documentation for the latest capability status before beginning a project.

Power Apps code apps support React, Vue, and any JavaScript or TypeScript framework. React is the most commonly used and recommended for new projects.

Yes. All end-users accessing a published Power Apps code app require a Power Apps Premium licence.

No. Code apps currently require an active internet connection. Offline support is not on the immediate roadmap and is not expected before mid-2026.

Yes. Dataverse is included as a first-class connector. The Power Apps CLI auto-generates typed models and services for your Dataverse tables.

How is a Power Apps code app different from a canvas app?

A canvas app is built visually in Power Apps Studio using a drag-and-drop designer. A code app is built entirely in code (React, Vue, TypeScript) in your preferred IDE, giving you full control over UI, logic, and performance.

Yes — code apps have been generally available since February 2026 and are fully supported for enterprise production use.

What’s Next: Part 2

Power Apps code-first development represents a genuine shift in how enterprise applications can be built on the Microsoft platform. It removes the ceiling that traditional low-code tools impose, while retaining the governance, connectivity, and security that makes Power Platform so valuable to organisations.

In Part 2, we apply everything covered here to a real-world build. Our MTC team built a fully functional Property Management System (PMS) using React and Power Platform code-first. We walk through the features, architecture decisions, real benefits realised, and the honest challenges we encountered — because understanding the limitations is just as important as knowing the strengths.

Start Building with Power Apps Code Apps

  • Read Part 2 of this series → See how we built a real-world Property Management System with Power Apps code apps.
  • Official Microsoft documentation — detailed technical guidance and quickstart tutorials.
  • Sample projects on GitHub — starter templates to accelerate your first project.
  • Contact our MTC team → — discuss how Power Apps code-first development can transform your organisation’s business applications.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top