Open lorniu opened 1 year ago
You can have a look at the progress bar component and the skipTo action. https://github.com/FormidableLabs/spectacle/blob/main/packages/spectacle/src/components/progress.tsx
The above MyLink
is written with reference to Progress
. I don't know if I missed something, the jump is okay, but the url remains unchanged after the jump. So very puzzled. Help, thanks.
Thanks for your excellent work,
spectacle
is great, I like it so much.As an Emacs user, I wrote ox-spectacle to product spectacle slideshows. It is based on Emacs org-mode's export engine, which can greatly simplify the creation of slideshows with
spectacle
. The wayox-spectacle
works is to translate theorg-marked
file into spectacle one-page html.I have several problems then. One of them is that, how to add a link that jumps to another slide page?
I wrote a component like this:
It does do the jump, but the
window.location
not sync after jump. Forgive my poor knowledge about ReactJS, I really don't know why.Please help me, or tell me any better way to do the job.
Thanks.