Rewrite React template as function component with hooks #40540
Labels
area-mvc
Includes: MVC, Razor, Localization, CORS, most templates
feature-spa
good first issue
Good for newcomers.
help wanted
Up for grabs. We would accept a PR to help resolve this issue
Milestone


Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
The React community has largely moved on from the old class-based components and now favors function components with hooks.
Describe the solution you'd like
Rewrite the
Counter.js,FetchData.js,Home.js,Layout.js,NavMenu.jsandApp.jsfiles to use a function component with hooks.Additional context
Use the
useStatehook.The text was updated successfully, but these errors were encountered: