Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 713 posts 954 karma points
    Jul 31, 2019 @ 02:05
    Tom
    0

    Create-react-app typescript to existing umbraco site?

    Hi just wondering if anyone has added create-react-app with typescript to an existing umbraco site. Any tips on getting started?

  • Ben 5 posts 86 karma points
    May 30, 2023 @ 11:24
    Ben
    0

    Hi Tom,

    The best way to approach this problem is to use npm/node in conjuntion with a bundler such as webpack, which will bundle all of the files to a static JS file that can be served from your web server. This avoids having .net and node in the same project both serving files, but allows you to take advantage of the modern javascript ecostystem.

    https://webpack.js.org/

  • jas nagra 1 post 71 karma points
    Oct 11, 2023 @ 00:01
    jas nagra
    0

    Hey Ben, I don't have much experience with Umbraco, mostly a react developer. My employer as a Umbraco V8 webapp, that seems to serve different html files and content that different users can create and upload.

    I was wondering if it would be possible to create a react app, bundle it with webpack into a static js file, and then have that be served as a content file? the umbraco backroom or backend that we use to upload content has a extended html tab where you can fill in what seem to be js files?

    Seems like this would be possible, does that seem correct?

Please Sign in or register to post replies

Write your reply to:

Draft