Example for React-based plugin

Hi folks,

is there an available plugin (in indico-plugins, indico-plugins-cern, or maybe in another external repo) that makes use of the react-based UI? I think it would be helpful for the community to have some reference. I know, one could check out the room booking, but this looks to me as kind of hard to digest.

Best,
Markus

React usage in plugins is one of the problems we have not fully tackled yet :confused:

In the burotel CERN plugin it works but we basically replace the whole room booking module there (importing it from the core, but that end up building the whole RB module in the plugin assets) so it’s not typical plugin usage…

If you just want to use react on a new page (ie not modify existing react-based stuff) it may already work fine. But I’m not completely sure since having react included twice may cause strange errors…

Maybe https://github.com/indico/indico-plugin-example/pull/2/files helps. I think there was some non-trivial problem though which is why I never merged it…

Hey,

checking back in on this one - do we have some updates here?

Not really. We have a plugin that contains some react in the meantime (the cloud_captchas plugin), but it’s not really rendering it on a new page but only via a plugin hook. Might still be useful to look at though