jxnblk / static-react

Zero-configuration CLI React static renderer
350 stars 29 forks source link

Multiple pages? #3

Closed bguiz closed 8 years ago

bguiz commented 8 years ago

I haven't tried this yet , because

static-react components/Root.js > index.html

(as mentioned here)

makes me feel that this only generates a single HTML page...

Can this project generate multiple pages across multiple directories, like would be required to upload to gh-pages as a static site?

webuniverseio commented 8 years ago

:+1: I have the same question. For example https://github.com/iansinnott/react-static-webpack-plugin can use react-router to generate multiple pages.

jxnblk commented 8 years ago

As an intentional design decision, this doesn't support react-router. This can be run with multiple scripts (i.e. one per page), but I wouldn't recommend it for more than five or so pages.

I might try to tackle routing with a different module, but don't plan on adding it in to this one.