lwc-react-webpack-demo
lwc-react-webpack-demo copied to clipboard
A project showing that it is possible to bundle react application with webpack and use them inside a LWC.
LWC React-Webpack Container
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 deploysfdx 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"