Use react JS inside AMD

Use react JS inside AMD

by Dasu Gunathunga -
Number of replies: 0

Hi,

I want to use React JS inside JS AMD package to make some of the JQuery coding more simpler.  Is there a way to add it like JQuery.

For example we add JQuery at the beginning of the page like this, 

define([
    'jquery',
    'core/notification',
 

Is there a way to use React JS same way? Did anyone use reactJS inside Moodle plugins? If so please provide an example.

Thanks a lot.

Average of ratings: -