Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
534 stars 78 forks source link

Template Router not working #560

Closed lukaszkrzywizna closed 1 year ago

lukaszkrzywizna commented 1 year ago

If I understand the concept of Feliz.Router correctly, it should be used as a root of an App. Currently, changing the URL gives no result.

Zaid-Ajaj commented 1 year ago

Hi @lukaszkrzywizna Feliz.Template is just that, a template where config is setup and the rest is up to you. I start with Counter() component because everyone knows and if they want to switch to another component, it is up to them.

Currently, changing the URL gives no result.

That is expected, the root component doesn't implement routing.

lukaszkrzywizna commented 1 year ago

Frankly, it's a little bit surprising. The template contains a few components, and the last is the sum of all previous ones enhanced with the routing feature. I would expect that all features are accessible at the beginning. But I get your point of view of course. 👌