Closed tjmonsi closed 6 years ago
I'm glad to know mantra works perfectly without meteor.
I just have one question: why are your routes so complex? I'm not familiar with qs
, so I am sure I am missing something, but shouldnt most of that logic be inside actions?
@fermuch Yeah, supposed to be page.js should be able to handle the routing capabilities of the app. But because the constraint was to deploy it along side a PHP system, I have to use query parameters (the ones after ?
in the url) instead of /:params/:here
In other words, I couldn't come up with a way to just render index.html given any url (except for images) so that the page.js can handle it.
As for the logic, I only put actionable logic in actions folder. Aside from that, is there other ways to do it?
We should also get a forum for this kind of talks. They're great, but they don't belong here.
This is pretty kwl. I think we may need to rebrand this as an application architecture for React. And I'll power up a forum in coming days.
You guys may want to check them out here: https://github.com/tjmonsi/chi2016-program
And the site is at chi2016.acm.org/program