Comments (12)
Actually I see you've been working on your own router, react-routing. What about integrating that into this project?
from react-firebase-starter.
Yep, definitely! I'm still thinking what's the best way to improve the routing (e.g. /users/:id
) and navigation (e.g. Location.goBack()
, Location.naivgateTo(path, {replace: true})
) in this project.
from react-firebase-starter.
I've just finished integrating your react-routing package into this, you can find it here: https://github.com/TeeKz/react-static-boilerplate/tree/react-routing
I like how you automatically make the routes, but it makes the project folder pretty messy compared to your react-starter-kit project. What if we had routes created automatically for 'content' made with jade files (like RSK) and then manually code in other routes?
from react-firebase-starter.
@teekz I was going to support both JSX and Markdown or Jade formats, so you could choose what format to use for each particular page. For example:
/pages/index.jade
/pages/about.md
/pages/products.js (JSX)
/pages/cart/index.js (JSX)
/pages/cart/checkout.js (JSX)
^ will be compiled to
/build/index.html
/build/about.html
/build/products.html
/build/cart/index.html
/build/cart/checkout.html
from react-firebase-starter.
@koistya So every page will need a md/js/jade file? Yeah that could work!
Build the site directory structure based on the /pages
internal structure and then we could easily have the other folders you use in RSK, such as /components
, utils
, etc. to keep things modular and tidy.
from react-firebase-starter.
Yep
from react-firebase-starter.
Can we use what I've done so far with react-routing? I still need to adjust the automated route creation to work for the different formatting, but other then that things are working nicely!
Let me know :)
from react-firebase-starter.
Yep, looks good. I would just mix it with automatic route generation for static pages.
from react-firebase-starter.
@teekz is there a way to know which link in the navigation is active?
from react-firebase-starter.
Haven't got there yet! We'll have to start managing state to get that.
On Aug 20, 2015 5:59 PM, "Li Shang" [email protected] wrote:
@teekz https://github.com/TeeKz is there a way to know which link in
the navigation is active?—
Reply to this email directly or view it on GitHub
https://github.com/koistya/react-static-boilerplate/issues/9#issuecomment-133190110
.
from react-firebase-starter.
@teekz Haha I see. Awesome work so far! Need this so badly :p
from react-firebase-starter.
I'm interested to see how the this turns out.
That said, I might try integrating Rakt Router if anyone has any interest.
from react-firebase-starter.
Related Issues (20)
- An in-range update of @firebase/auth is breaking the build 🚨 HOT 2
- An in-range update of dotenv is breaking the build 🚨 HOT 1
- An in-range update of moment-timezone is breaking the build 🚨 HOT 1
- An in-range update of react is breaking the build 🚨 HOT 1
- An in-range update of eslint-config-prettier is breaking the build 🚨 HOT 1
- An in-range update of firebase-admin is breaking the build 🚨 HOT 1
- Migrate from JSS styles to Emotion
- Admin Access HOT 2
- error [email protected]: The engine "node" is incompatible with this module. Expected version "10". Got "12.13.0" HOT 2
- Subscriptions example
- Can't get CustomerChat working
- Cannot read property 'tap' of undefined with Typescript added
- [Feature Request] Scalars
- How to run react-firebase-starter in different GCP region
- [Question] What's the usual cost for maintaining this setup on gcloud+firebase? HOT 1
- How to pagination users or stories? HOT 1
- If I need a pure front-end frame, how can I refit it(react-firebase-starter) ?
- Issues with postgres connectivity running in dev mode HOT 1
- http://localhost:3000/login?error=connect%20ECONNREFUSED%20127.0.0.1%3A5432 HOT 1
- Is this repo still maintained ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-firebase-starter.