![]() ![]() This will allow you to include 3rd-party packages from npm, scale your application to many files and components, enable live editing in development mode, and help optimize things for speed and compatibility. We think that in most cases you'll want to set up a build toolchain for your React (and other JavaScript). Our example code demonstrates how to do it if you really want to know. However, we couldn't come up with any real-world scenarios in which you would do this to add React to a Drupal module or theme. ![]() It's possible to add the React library via a plain tag in your HTML, like you might have included jQuery in the past.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |