function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ram sbram sb 

Embed React JS in Lightning Web Component

How to use React JS in Light Web Component?
my customer wants to Develope Custom Page by using React JS in Salesforce, So could any one suggest best way?

Thanks you very much for your valuable input!
Best Answer chosen by ram sb
AbhishekAbhishek (Salesforce Developers) 
Hi Ram,

The below article have information about React JS,

https://medium.com/@rajaraodv/developing-react-redux-apps-in-salesforce-s-visualforce-3ad7be560d1c

Try based on the above article.

As of now, there is no exact scenario to guide you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Regards,
Salesforce Support.
 

All Answers

AbhishekAbhishek (Salesforce Developers) 
Hi Ram,

The below article have information about React JS,

https://medium.com/@rajaraodv/developing-react-redux-apps-in-salesforce-s-visualforce-3ad7be560d1c

Try based on the above article.

As of now, there is no exact scenario to guide you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Regards,
Salesforce Support.
 
This was selected as the best answer
ram sbram sb
Thank you very much for sharing the Article!
The Article is showing capabilty to embed react in VF or Aura Components.
Could you pelase share some information or examples on How to use React JS in Light Web Component(LWC)?
 
AbhishekAbhishek (Salesforce Developers) 
Ram Sorry As of now we don't have any working scenario or like examples to suggest you.

Based on your query I have checked internally and found the above article.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Regards,
Salesforce Support.
 
ram sbram sb
Thanks for checking!
Sibendu DasSibendu Das
Dear all,
I arrived here searching for same question. This seems couple pf years old. So has there been any further change and is Salesforce supporting embedding React components in LWC now?
Thanks in advance.
Regards
sibendu 
Genady Vaisman 4Genady Vaisman 4
Hi
Not sure about official Saleforce support and surely LWC has it's limitation in embedding scripts and frameworks.
This project shows a good starting point: https://github.com/ChuckJonas/lwc-react-webpack-demo.
It has a LWC that loads a react app via script resource.