GithubHelp home page GithubHelp logo

react-router about react-firebase-starter HOT 12 CLOSED

t-kelly avatar t-kelly commented on May 2, 2024
react-router

from react-firebase-starter.

Comments (12)

t-kelly avatar t-kelly commented on May 2, 2024

Actually I see you've been working on your own router, react-routing. What about integrating that into this project?

from react-firebase-starter.

koistya avatar koistya commented on May 2, 2024

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.

t-kelly avatar t-kelly commented on May 2, 2024

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.

koistya avatar koistya commented on May 2, 2024

@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.

t-kelly avatar t-kelly commented on May 2, 2024

@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.

koistya avatar koistya commented on May 2, 2024

Yep

from react-firebase-starter.

t-kelly avatar t-kelly commented on May 2, 2024

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.

koistya avatar koistya commented on May 2, 2024

Yep, looks good. I would just mix it with automatic route generation for static pages.

from react-firebase-starter.

seanli avatar seanli commented on May 2, 2024

@teekz is there a way to know which link in the navigation is active?

from react-firebase-starter.

t-kelly avatar t-kelly commented on May 2, 2024

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.

seanli avatar seanli commented on May 2, 2024

@teekz Haha I see. Awesome work so far! Need this so badly :p

from react-firebase-starter.

hew avatar hew commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.