Answers
- A method called
Mainin theProgramclass is the entry point method in an ASP.NET Core app. - A file called
index.htmlis the single HTML page filename. This is located in thepublicfolder, which can be found in theClientAppfolder. - The React app dependencies are defined in a file called
package.jsonin theClientAppfolder. npm startis the command that will run the React app in the WebPack development server.npm run buildis the command that builds the React app so that it's ready for production.- The
rendermethod renders a React class component. - Authentication will be invoked first in the request/response pipeline.
- We can give the
Startupclass a different name by defining this class inIHostBuilder, as shown in the following example:public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<MyStartup>(); }); - All modern browsers, including IE, are supported by a React app created by CRA.