/lwc-react-webpack-demo

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

Primary LanguageJavaScript

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"