Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 859 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 859 Bytes

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"