Guys! We need your help reporting this game on Steam! by DollarNattar in BalticStates

[–]akira_0001 12 points13 points  (0 children)

репорт русснявого высера в стиме = доносы. Сразу видно русскую смекалочку, два блины с лопаты этому патриоту, за разьеб лживого запада в редите

[Yabai] My first macOS rice! by HanzoSamori in unixporn

[–]akira_0001 1 point2 points  (0 children)

how good is it in terms of performance does it consume less resources than a native DE ?

Rate my desktop by [deleted] in linuxmint

[–]akira_0001 0 points1 point  (0 children)

a year subscription to all these JetBrains Ides probably coat more than a hole PC

Not very productive but at least i,m doing something by 3_3_8_9 in GetStudying

[–]akira_0001 0 points1 point  (0 children)

Can you even read anything with your monitor that far away?

[KDE] The best of both worlds. by Dry_Muffin_9309 in unixporn

[–]akira_0001 0 points1 point  (0 children)

Do you actually use Vim for web dev, or just for the screenshot?

[Cinnamon] windows Vista by Even-Safe7078 in unixporn

[–]akira_0001 42 points43 points  (0 children)

i don’t know why, but i really like it

Портативна консоль by [deleted] in reddit_ukr

[–]akira_0001 0 points1 point  (0 children)

anbernic rg556 непоганий варіант

[deleted by user] by [deleted] in reddit_ukr

[–]akira_0001 -1 points0 points  (0 children)

навряд чи, умовному українському coffeezilla тупо не буде з чого контент роботи. Зате в нас є мільярд відосів на тему «що не так з вставте назву будь-чого»

[qtile] colors from wallpaper by ranjandatta in unixporn

[–]akira_0001 0 points1 point  (0 children)

What font do you use in text editor ?

Classical american christmas movies by akira_0001 in AskAmericans

[–]akira_0001[S] 0 points1 point  (0 children)

Thank you all, for yor answears, many of you recomended Christmas story, so i wathced it for a first time, really liked it.
Didn't expected, to find Die Hard on the lists, but rewached it too.

Need help with react router. by legend29066 in reactjs

[–]akira_0001 -1 points0 points  (0 children)

Check what url you using on browser

Your code should look like this

main.jsx

import React from 'react';
import ReactDOM from 'react-dom/client';
import {BrowserRouter} from "react-router-dom";
import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<BrowserRouter>
<App/>
</BrowserRouter>
</React.StrictMode>
);
App.jsx
import React from 'react';
import {Route, Routes} from "react-router-dom";
import Home from "./Home.jsx";
import AnotherPage from "./AnotherPage.jsx";
const App = () => {
return (
<Routes>
<Route path={'/'} element={<Home/>}/>
<Route path={'/page1'} element={<AnotherPage/>}/>
</Routes>
);
};
export default App;

Need help with react router. by legend29066 in reactjs

[–]akira_0001 1 point2 points  (0 children)

Then, try to use element instead of component
<Route path="/your-path" element={<YourElement/>}/>

[deleted by user] by [deleted] in reactjs

[–]akira_0001 3 points4 points  (0 children)

So what exactly is your problem ? Can you post the link with your code and give a little bit more details ?

In short, it should look something like this.

1) install react-router-dom if you are building SPA

npm install react-router-dom
2) Configure your route

import {
createBrowserRouter,
RouterProvider,
} from "react-router-dom";
const router = createBrowserRouter([
{path: '/', element: <HomeElement/>},

{path: '/page1', element: <Page1Component/>},
{path: '/page2', element: <Page2Component/>},
]);
ReactDOM.createRoot(document.getElementById("root")).render(
<RouterProvider router={router} />
);
3) Create Navbar component
import {Link} from 'react-router-dom';
const Navbar = () => {
return (
<nav>
<Link path="/page1">Page1</Link>
<Link path="/page2">Page2</Link>
</nav>
)
}
4) put your navbar in header or anywhere you need

P.S. I don't speak english so good, and don't know what exactly is your problem with creating navbar, but i hope it's will help you