Step-by-Step Guide to Building React Internal App in Salesforce

For a long time, if you wanted to build a custom UI on Salesforce, your options were limited — and they were tied to Salesforce's own frameworks, like Lightning Web Components (LWC) and Aura (and Visualforce before them). These work well, but they are Salesforce-specific. If your team already knew a mainstream framework like React, you couldn't really use it on the platform. You had to learn Salesforce's way or stay off it.

Salesforce Multi-Framework changes this. It lets you build a real Salesforce app using React, and run it right inside Salesforce. You still get Salesforce's login, security, and data rules — for free. It is in open beta right now.

In this guide, you will build a React "Internal App" from start to finish. You will create it, run it on your computer, deploy it to your org, find its source code, and then add a new page to it using vibe coding — no Apex or LWC needed. The full walkthrough is embedded below.

What Is Salesforce Multi-Framework?

Think of it as a way to run normal React code inside Salesforce. You build a standard React app — with your own tools and components — and Salesforce hosts it for you.

The best part is what you keep. Your React app can:

  • Read and update records using GraphQL

  • Call Apex methods when you need custom logic

  • Get the logged-in user and their context using UI APIs

  • Follow the same security and sharing rules your org already has

Today, React is the only framework supported. Salesforce has said more frameworks (like Vue) are coming later.

How Is It Different from LWC?

Multi-Framework does not replace LWC. Both work side by side, and your existing Lightning Web Components keep running. The main difference is the tools you use and how you build. Here is how they compare:

  • Getting data: React uses GraphQL, Apex, and UI API; LWC uses @wire and Lightning Data Service.

  • Components: With React you bring your own or use Vibes-generated ones; LWC gives you 80+ base components.

  • Styling: React uses Tailwind or any CSS you like; LWC uses Salesforce's SLDS.

  • Lightning App Builder: Not supported for React yet (coming later); full drag-and-drop for LWC.

  • Tools: React uses npm, Vite, and React DevTools; LWC uses the Salesforce CLI and LWC Local Dev.

Simple rule: use React if you want to reuse your components in other apps outside Salesforce, or you like the React ecosystem. Use LWC if you want Salesforce's built-in data tools and drag-and-drop App Builder.

Why It Matters

Here is why this is useful:

  • Use the skills you already have. Your team can build on Salesforce with React, instead of learning a new framework.

  • Reuse your code. React components you already built can move onto Salesforce with little rework.

  • Build faster with AI. Tools like Agentforce Vibes and Claude Code can write and extend these apps from plain-English prompts.

  • Security comes built in. Because the app runs inside Salesforce, it gets Salesforce's login and sharing rules automatically. No extra hosting to set up or protect.

What You Will Build (Step by Step)

The embedded guide takes you through the whole process:

  1. Get ready — set up VS Code or Cursor, update the Salesforce CLI, and install the ui-bundle plugin.

  2. Create the project — generate a React Internal App and install its dependencies.

  3. Run it on your computer — start the local server, open localhost:5173, and browse Account records with search, filters, and paging.

  4. Deploy to Salesforce — build the app, deploy it, assign the permission set, and open it from the App Launcher.

  5. Find the source code — three ways to get it: the Org Browser in VS Code/Cursor, a Salesforce CLI command, or Agentforce Vibes.

  6. Add a new page with vibe coding — use Claude Code to build working Lead pages that match the existing Account pages, then deploy and test them.

Every step has screenshots, so you can build it in your own org as you follow along.

This guide is a lesson in our Mastering AIforce course. All Access Pass members can download the PDF from the lesson.

Things to Keep in Mind

This is beta, so a few limits apply:

  • No production orgs. Use a Developer Edition, scratch org, or sandbox only. Never your production org.

  • No App Builder yet. You cannot drag a React component onto a Lightning page during beta. This is coming later.

  • Some APIs are missing in the beta. Check the docs for the current list.

  • Embedding React inside Lightning pages is still in early preview, not fully released.

  • Language. Salesforce's beta notes mention orgs set to English as the default language.

Please note: beta features change often. Check the Multi-Framework beta docs for the latest details. For any questions about cost, licenses, or editions, check with your Salesforce account team.

A Few Good Habits

  • Work in a sandbox or Developer Edition, and save your app code in version control like any other project.

  • Remember security still applies. Users only see the records their sharing rules allow, even in React. Assign the permission set on purpose.

  • Watch your API limits. GraphQL and Apex calls count against your org's limits. Use the SDK's data tools instead of calling APIs randomly.

  • Check AI-written code. Vibe coding is fast, but read what it creates before you deploy it.

  • Copy the existing pattern. When you add a new object (this guide adds Lead), follow the same structure and style the app already uses. This keeps it clean and easy to maintain.

References & Useful URLs