erikras / erikras/react-redux-universal-hot-example

Loading dynamic content from routes

Open
#738 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I am new to react and redux. What is the best practice for loading content from the API for routes e.g.
/cms/page1

Where I want to display the content for page1. I've already setup the API-server example to serve content for /api/cms/:pagename.

Do you suggest to create a component for that content or can I just use the route container for serving it?
How can I pass the url param :pagename. What's a good approach?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.