since ‎30-06-2014
2 hours ago
StephanAdobe
Employee
Re: Sample App React-Spectrum
Avatar

StephanAdobe

Employee

StephanAdobe
- Project Firefly
You can use the Hash Router which plays well in the Unified Shell see https://reacttraining.com/react-router/web/api/HashRouter. The code you referenced is related to the Unified Shell history handling. Every time the Unified Shell detects a change in the history, it passes it down to your App e.g. so that you can change its hash router see https://github.com/AdobeDocs/project-firefly/blob/master/guides/exc_app/overview.md#history.

Views

1.7K

Likes

0

Replies

0
Re: Sample App React-Spectrum
Avatar

StephanAdobe

Employee

StephanAdobe
- Project Firefly
Hi @ursboller I recommend to use react-router to handle navigation in your app. Here is a simple working example that shows how to set up navigation. Also if you plan to use TypeScript + React JSX, you should add a tsconfig.json file under your web-src folder with the following config: { "compilerOptions": { "jsx": "react" } } See https://en.parceljs.org/typeScript.html#when-using-react for more information. Regards,Stephan

Views

2.2K

Likes

0

Replies

2