Implementing server-side rendering with data for all the React views in an application can become complicated and additional work when it is necessary to consider views with client-side authentication or consisting of multiple data sources. In many cases, it may be unnecessary to tackle these complexities if the view does not require server-side rendering with data. In order to judge whether a view needs to be server-rendered with data, answer the following questions for the specific view to make your decision:
- Is it important for the data to be displayed in the initial load of the view when JavaScript may not be available in the browser?
- Do the view and its data need to be SEO-friendly?
Loading data in the ...