From 37aa2c4eff641171df458f151f96216f4d96d435 Mon Sep 17 00:00:00 2001 From: dora Date: Sun, 24 Mar 2024 15:16:21 +0900 Subject: [PATCH] fix docs routing (#3206) * fix docs routing * changelog * changelog --------- Co-authored-by: Lea Anthony --- website/docs/guides/routing.mdx | 2 +- website/src/pages/changelog.mdx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/guides/routing.mdx b/website/docs/guides/routing.mdx index ce176943ea5..9c7864befc2 100644 --- a/website/docs/guides/routing.mdx +++ b/website/docs/guides/routing.mdx @@ -30,7 +30,7 @@ RouterModule.forRoot(routes, { useHash: true }); The recommended approach for routing in React is [HashRouter](https://reactrouter.com/en/main/router-components/hash-router): ```jsx -import { HashRouter } from "react-router-dom"; +import { HashRouter, Routes, Route } from "react-router-dom"; ReactDOM.render( diff --git a/website/src/pages/changelog.mdx b/website/src/pages/changelog.mdx index cd3b29a101f..495aea3ee5a 100644 --- a/website/src/pages/changelog.mdx +++ b/website/src/pages/changelog.mdx @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Docs for IsZoomControlEnabled and ZoomFactor. Fixed by @leaanthony in [PR](https://github.com/wailsapp/wails/pull/3137) - Fixed `-compiler` flag for `wails build`, `wails dev` and `wails generate module`. Fixed in [PR](https://github.com/wailsapp/wails/pull/3121) by [@xtrafrancyz](https://github.com/xtrafrancyz) - Fixed uninitialized `SecondInstanceData.WorkingDirectory` on linux and windows ([#3154](https://github.com/wailsapp/wails/pull/3154)). +- Fixed React Routing documentation add 'Routes' and 'Route'. Fixed by @doracpphp in [PR](https://github.com/wailsapp/wails/pull/3206) - Fixed save file dialog not appending file extension automatically on Windows by @almas1992 in [PR](https://github.com/wailsapp/wails/pull/3205) - Fixed compatibility for wails cli being built with go 1.22 and later. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/3244) - Fixed documentation for Window API return types. Fixed by @jangler in [PR](https://github.com/wailsapp/wails/pull/3247)