dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.6k stars 25.29k forks source link

Provide the content of ClientApp/boot-server.ts or add a new starter project for React that includes it #8922

Closed gfox1984 closed 5 years ago

gfox1984 commented 6 years ago

Issue description

I have installed the 'reactredux' starter template and I'm trying to follow the documentation at https://docs.microsoft.com/en-us/aspnet/core/client-side/spa-services?view=aspnetcore-2.1#the-asp-prerender-module-tag-helper to implement isomorphism.

However, I'm not sure what to make of the following snippet:

entry: { 'main-server': './ClientApp/boot-server.ts' },

The content of boot-server.ts is not specified and there's no indication or link that would explain how to create it. Please provide this information.

Alternatively, please update the reactredux starter project (or a add a new one) to provide the required files.

Software versions

Check the .NET target framework(s) being used, and include the version number(s).


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Rick-Anderson commented 6 years ago

@gfox1984 you'll probably get a quicker response from StackOverflow.

gfox1984 commented 6 years ago

Hi Rick,

I've tried stackoverflow without getting much attention: https://stackoverflow.com/questions/52715810/how-to-implement-isomorphism-for-react-app-with-net-core I've also suggested that the templating team creates a new template that demonstrates pre-rendering in a React + Redux app: https://github.com/aspnet/Templating/issues/768. They don't seem keen on it as they want to remain aligned with the official "create-react-app".

I wish luck to the guy who will try to implement pre-rendering with React using the current documentation and stackoverflow as their sole support...

If you guys are still committed with "position[ing] ASP.NET Core as developers' preferred server-side platform for building SPAs.", you need to realise that developers need more documentation and materials for this. .Net Core 2 has been out for a year now, and somehow I feel like I'm the first one attempting to use this feature with React :(

Sorry for the rant, hope it gets better soon.

Rick-Anderson commented 5 years ago

Thanks for contacting us. We don’t have the resources to invest in this area, so we are closing the issue. Should your request generate enough 👍 responses, we’ll reconsider.