Question: Serve one app path with React and serve other paths with EJS

Question

Serve one app path with React and serve other paths with EJS

Answers 0
Added at 2016-12-29 22:12
Tags
Question

Currently my express app renders all paths with EJS. I'd like to replace one path in particular to render with React on the client side. That particular page has a lot of state/data and React with Redux would likely be a good solution (later on I'd transition all paths/routes to React).

For example:

/dashboard -> all components on this path would change from EJS to React /auth -> everything here EJS /about -> also EJS /faq -> also EJS

Any ideas how to render one particular path with React while keeping all the others rendering with EJS?

Answers
Source Show
◀ Wstecz