Skip to content

A project showing that it is possible to bundle react application with webpack and use them inside a LWC.

Notifications You must be signed in to change notification settings

zhouhu/lwc-react-webpack-demo

 
 

Repository files navigation

LWC React-Webpack Container

LWC_React_Hello_World___Salesforce

Proof of concept demonstracting how you can use webpack to bundle a react application and mount it in a LWC.

At this time, I do not recommend doing this for anything other than a static page. If you want to develop react SPA applications on salesforce, I recommend using Visualforce (check out B.A.S.S. for ready to go boiler plate)

Setup

  • clone this repository
  • npm install
  • create a scratch org. Set as default
  • npm run deploy
  • sfdx force:user:permset:assign -n lwc_react

Demo

  • sfdx force:org:open
  • Add 1 or more contacts
  • Open App Launcher
  • Select "LWC React Hello World"

About

A project showing that it is possible to bundle react application with webpack and use them inside a LWC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.8%
  • TypeScript 31.7%
  • Apex 6.5%
  • HTML 2.0%