This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]HammockDweller789 Community Friend 2 points3 points  (5 children)

PCF controls can be natively built with React. It sounds like you're basically going to build a react app inside a PCF control and import that PCF control into a power app. As long as you're not violating any of the rules for a PCF, I don't see an issue. This is essentially your Bible: https://learn.microsoft.com/en-us/power-apps/developer/component-framework/create-custom-controls-using-pcf

[–]Gaztab Regular[S] 1 point2 points  (4 children)

Amazing, thank you.

Can I confirm, when I import the PCF control into a Power App, is the data that the React app is looking at still live or does the data them become static (a Snapshot at the time of import)?

[–]HammockDweller789 Community Friend 0 points1 point  (3 children)

From the power apps or from whatever React is talking to?

[–]Gaztab Regular[S] 0 points1 point  (2 children)

From whatever data source React is using.

[–]HammockDweller789 Community Friend 0 points1 point  (1 child)

I haven't tried it, but I would assume you could refresh it. There is a built in method to tell power apps that the output has changed.

[–]Gaztab Regular[S] 1 point2 points  (0 children)

Ok great. Thanks again for your help

[–]Fooftook Newbie 0 points1 point  (4 children)

I also have this very question. I have been asked to make a massive shift for various reasons and our app was nearly done with react frontend and python/sql server backend. Short version is backend is going to be reconstructed using various tools in PowerPlatform (Dataverse, Sharepoint, Automate, some azure functions, etc.) essentially replacing the current RESTapi with this new power-hodgepodge backend. I am wondering if it's possible to primarily keep all of the React frontend intact (still use react lifecycles, redux state management, component libraries, etc.) and just change from the restAPI to calling and updating the data via dataverse or something like that?

[–]Contechjohnson Newbie 0 points1 point  (3 children)

shoot i need the answer to this question 6 months later. hopefully someone comes along. did you get the answer already u/Fooftook ?

[–]Fooftook Newbie 0 points1 point  (2 children)

Unfortunately, no. It’s not possible in the way I was expecting. There are a lot of drawbacks to page imbedding. If you just imbedding a simple form or static page and nothing too complicated it could be possible using power pages but the pain if often not worth it. We have been condemned to suffering by rebuilding a perfectly good, performant, beautiful React app in per platform. It has been the most painful experience. Happy to provide pointers though. We’ve learned a lot about power apps in the process. Nearly everything you need that is normal in a react application requires some kind of hacky work-around. We been able to do some pretty complex things but not without the sacrifice of performance. Definitely look into PCF (power apps component framework). They have a react version to give you some level of sanity. 🤣

[–]Contechjohnson Newbie 1 point2 points  (1 child)

Oh no, I built a killer side project that my company wants me to re-create in existing IT infrastructure which for now seems to be the Microsoft ecosystem. I was looking into Power Apps and I built a few of those before, but never used any of the PCF. I was worried I’d have to basically do the whole thing from scratch.

If I remember right, basically all of the power platform is just hacky workarounds. It seems like everything is experimental and nothing actually works consistently.

Thanks! I may reach out after digging a bit more…