MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Modern Frontend Consumption guides with WebView2

Open
#5,243 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

So some years ago there where already posts regarding such intergations but I am not able to find any guides or documentation from Microsoft how to use 3rd party frontends.

This is crusial for adoption of the tooling but also allows for very versatile functionality. Combining .NET seamlesly with React or Angular as a frontend.

Source Post:

You can look at using the WebResourceRequested event to have the host app receive/intercept web HTTP requests and send the response you want back to the HTML. https://docs.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.664.37#add_webresourcerequested

Thanks for the feedback on providing a more full-experience platform like Electron. It's something I hope we do at some point, but it's likely pretty far down the road for us.

@champnic

Sorry for the necro post. But it is now some years down the line. Are there already guides or CLI setup tools that make it simple to use something like ReactJS .tsx projects with WebView2?

For example I create a simple React project with vite. And then npm run build it to have the index.html with dependencies bundled. Is there something like a guide for "using popular frontend frameworks within WebView2 applications"

Angular React etc just to name a fiew.

Originally posted by @rufreakde in #788

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked WebResourceRequested reference and review the existing WebView2 documentation for frontend integration guidance. Compare the requested React, Angular, and Vite scenarios, then determine whether the documentation should cover setup, build output, and loading the frontend in a WebView2 application.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, react, vite
Domain
desktop, documentation, frontend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.