goBack
A method for navigating through history. It returns the user to the previous screen.
import { goBack } from "@app/ui"
attachMedia()
Examples
When the button is pressed, it goes back in history.
import { goBack } from '@app/ui'
app.screen('goBack', async (ctx, req) => {
return (
<screen>
<button title="Go back" onClick={goBack()} />
</screen>
)
})