> On Jul 19, 2020, at 9:00 PM, Carlos Rovira <[email protected]> wrote:
>
> Hi,
>
> I'm looking to add routing to a royale app embedded in a web page.
> I remember Harbs added HashRouter and BrowserRouter.
>
> 1.- Router is finally deprecated? If so, I think it should be removed to
> avoid confusions.
Yes. It’s deprecated. We can probably remove it. I doubt it’s being used.
> 2.- Could this page [1] be updated to reflect the new classes?
Yes. It should.
> 3.- For apps embedded in a web page, it's possible to use BrowserRouter? or
> is it mandatory to use HashRouter?
Either will work.
> I think this example [2] (TodoMVC-Crux) that is using Router, could be
> updated to BrowserRouter, but I guess that will only work if I change
> .htaccess rewrite rules like Josh said right?
Correct.
> The config will be the same just changing "Router" to "BrowserRouter"? :
>
> <js:BrowserRouter>
> <js:RouteToState component="{footer}"/>
> <js:RouteTitleLookup lookup="{getTitleLookup()}"/>
> </js:BrowserRouter>
>
> [1] https://apache.github.io/royale-docs/features/routing
> [2]
> https://github.com/apache/royale-asjs/tree/develop/examples/crux/todomvc-jewel-crux/src/main/royale/jewel/todomvc
> --
> Carlos Rovira
> http://about.me/carlosrovira