Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mohmaedhasssan's avatar

Mohmaedhasssan liked a comment+100 XP

3mos ago

ReactJS implementation will look like this.

import { Link, usePage } from "@inertiajs/inertia-react";
.
.
.
 const { component } = usePage()

<Link href="/" className={component === "Home" && 'is-active'}>
         Home
 </Link>
Mohmaedhasssan's avatar

Mohmaedhasssan liked a comment+100 XP

3mos ago

@adamwaheed

I am also using Breeze. Try adding a delay to one of the Nav links in your web.php routes file.

Route::get('/users', function () {
    sleep(2);    // add 2 second delay here
    return Inertia::render('Users');
});
Mohmaedhasssan's avatar

Mohmaedhasssan liked a comment+100 XP

3mos ago

@Lordbedwetter For anyone else struggling with the documentation for React + Laravel, this episode from React Beyond the Basics covers the steps the documentation skips over (https://laracasts.com/series/react-beyond-the-basics/episodes/13).

For figuring out the React equivalent of the Vue way of doing stuff, I personally find looking at the code for the demo app more intuitive than reading the documentation (https://github.com/Landish/pingcrm-react).

Mohmaedhasssan's avatar

Mohmaedhasssan liked a comment+100 XP

4mos ago

Lovely cast, very hands-on and clear.

Can you (or someone) please elaborate a bit more on the (real-time) performance impact of using Telescope in production?

Mohmaedhasssan's avatar

Mohmaedhasssan liked a comment+100 XP

5mos ago

Well, they all 3 do the same thing. In the end, it just comes down to preference. I would probably pick the tool that is the best maintained and which looks the nicest to work with. Do you like the design, how the documentation inside the code works, how the generation of the documentation works? Those kinds of questions.

Mohmaedhasssan's avatar

Mohmaedhasssan liked a comment+100 XP

5mos ago

https://scramble.dedoc.co/ might be good option too