React widgets on Mendix 6.10.18

0
Is it doable to create custom widget using react while the project is build on Mendix 6.101.8 ? If yes, please provide a sample.
asked
2 answers
2

Dear Mohamed,

Starting in Mendix 8 you can build React widgets with the react version that is shipped with Mendix client.

It will not stop you to use React in Mendix 6, The only thing, you have to provide React yourself. Either adding React and React-Dom to the index.html. Or bundle it with the widget. You have to write a wrapper connecting the Mendix Dojo lifecyle to the React, and you have still handle the data subscriptions yourself. All and all not an easy path.

You can get a head start with this NONE supported side project. https://github.com/omnajjar/create-hyper-mendix-widget  probably use the variant React (with dojo wrapper) Though I dont know if it will work with 6.

Good luck!

Cheers, Andries

 

 

answered
1

React was introduced with Mendix 8, if you are on Mendix 6 either upgrade to Mendix 8 or build widgets with Dojo

answered