#component build
1 messages · Page 1 of 1 (latest)
Make sure your settings are correct ->
https://gist.github.com/Arkellys/96359e7ba19e98260856c897bc378606#5
ok i'm looking
I do not understand anything
are u come my screen in voice channel ?
no
😦
what you don't understand?
anything 😄
try to read again then
my English is not very good
i read 3 times and my friend read 2 timer
we dont understand 😄
what's your first language?
turkish and JS
ah, can't help then
only come voice and route we
French
no
are u say always no ? 😄
I mean, the docs I send can easily be translated
but when i apply it i don't get any results
you just need to check if this could be your issue
then you need to share more info about your problem
my router page
Note that there is only 1 router, so I opened the project for testing purposes
looks okay
i use hashrouter , browser router and other router
except for this useEffect
All are working in development phase
I don't see why you need this navigate
But when we build, there is no page and no error.
how have you created your React app?
okay, now show me how you load your content in your BrowserWindow?
okay, screenshot of the Network tab of your app in production?
If it's empty when you open it reload the page
we want a router system but we work with file system in production mode
Router is no problem in production as long as you use Hash routing
this is correct
try without the useEffect containing the navigate
again, I don't see why you have it
?
.....
i change this and
i see this
i try this and i see
this
i try once time and i see
THIS
the screen you showed doesn't use Hash routing!
ok i send wait
is ok ?
I think you need to check react-router docs
actually we try one file index router system
but we dont how works hashrouter url add and remove
it's either createHashRouter() or <HashRouter>, not both. Just like it's either createBrowserRouter() or <BrowserRouter>
do you have a example code
is ok ?
ya
ok try build
but now we dont know go another page
to redirect you can use useNavigate, useRedirect or <Navigate>
just like a normal app
can we need url started # character
you don't need to worry about the # no
is there need Hashrouter is #
man say no dude
try to return a Navigate component instead
oh sorry, I didn't see you were in a function
navigate should work just fine
❤️
glad you solved your problem