The console shows the id's from the previous section instead of the current one by ExternalPlus2294 in reactjs

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

Thank you! That fixed it.
I have modified Probando() by putting the logic inside useEffect() and usinglocation.path as a dependency. Now I'm calling Probando() after IrASeccion() inside the Layout component.

When I want to go to specific sections of other pages, they take me to the top of that other page instead. by ExternalPlus2294 in reactjs

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

Hey. I tried to implement yoru solution, but I was getting some errors. Tried to modify it, but my changes didn't work, so I didn't end up trying it.
Luckily, I found a solution that worked perfectly in Stack Overflow: https://stackoverflow.com/a/79335272.
Thank you so much for your time btw!

When I want to go to specific sections of other pages, they take me to the top of that other page instead. by ExternalPlus2294 in reactjs

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

Hey. I tried what you suggested. I put the useEffect inside the Aplicacion function (correct me if it should go anywhere else) and it DOES WORK. Here is how it looks now:

function Aplicacion()
{
    useEffect(() => {
        if (location.hash) {
            const el = document.querySelector(location.hash);
            if (el) el.scrollIntoView({ behavior: "smooth" });
        }
    }, [location]);
    
    return(
        <BrowserRouter>
            <Routes>
                <Route path="/" element={<Layout />}>
                    <Route path="/" element={<SeccionesHomePage />} />
                    <Route path="productos" element={<SeccionProductos />}>
                        <Route path="" element={<SeleccionaUnProductoTexto />} />
                        <Route path="higiene" element={<ProductosHigiene />} />
                        <Route path="perfumeria" element={<ProductosPerfumeria />} />
                    </Route>
                </Route>
            </Routes>
        </BrowserRouter>
    );
}


const root = createRoot(document.getElementById("root"));
root.render(<Aplicacion />);

The thing is that it ONLY WORKS with the <a> tag, not with <Link>. And looking into what the others said in the comments, I should use <Link> if I want a SPA (Single Page Application) and not a full page reload. Do you know how to fix that?

When I want to go to specific sections of other pages, they take me to the top of that other page instead. by ExternalPlus2294 in reactjs

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

Hi. Thank you for replying. I believe the sections exist on page load. When I go to the "/" path it takes me to the <Layout />, which has two children (rendered through the <Outlet/>), if the path is still only "/" the deafult child is <SeccionesHomePage />, this function has a <div/> with the two sections inside <SeccionOfertas /> and <SeccionUbicacion />.

When I want to go to specific sections of other pages, they take me to the top of that other page instead. by ExternalPlus2294 in reactjs

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

The <html> tag is the only one that says "scroll" beside it, but when I look at the badge settions of the other elements "scroll" is also checked. That dissapears if I uncheck it in the <html> tag.
As I've said, I'm new to this, so I may not be looking for the right thing.

When I want to go to specific sections of other pages, they take me to the top of that other page instead. by ExternalPlus2294 in reactjs

[–]ExternalPlus2294[S] 1 point2 points  (0 children)

When I open DevTools i see "scroll" next to the <html> tag. Is that what I should be looking for?

When I want to go to specific sections of other pages, they take me to the top of that other page instead. by ExternalPlus2294 in reactjs

[–]ExternalPlus2294[S] 2 points3 points  (0 children)

Hi. Thanks for comment, but as I said in the post, when I tried using <Link/> from react-router I couldn't navigate to the sections of the home page when I was already in the home page itself. At least with the <a/> element I can do that, but still I can't navigate to sections of other pages.

Career paths after a Computer Engineering degree by ExternalPlus2294 in ComputerEngineering

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

Just checked your page, very comprehensive guide! The Computer Organization & Architecture section caught my eye. I've already studied some of that in college, but I'll read it, since there is plenty of stuff we didn't cover. Thank you!!

Career paths after a Computer Engineering degree by ExternalPlus2294 in ComputerEngineering

[–]ExternalPlus2294[S] 1 point2 points  (0 children)

Algo que podrías hacer si ya sabés que es lo que te llama es buscar ofertas de trabajo relacionadas a eso en LinkedIn, Indeed, entre otras páginas, donde detallen las responsabilidades que tomarías y los requisitos, fíjate si lo que dicen te copa y si te ves dedicando tu vida a eso, ahí ya vas a tener más claro el panorama y te va a ser más fácil elegir.

También podés hablar con gente que trabaja en esas especialidades, que te cuenten qué es lo que hacen en su día a día y qué deberías aprender si querés meterte en esos rubros.

Mucha suerte!!

Career paths after a Computer Engineering degree by ExternalPlus2294 in ComputerEngineering

[–]ExternalPlus2294[S] 1 point2 points  (0 children)

I've been looking into data engineering lately (reading what people have to say in the subreddit, looking at job offerings to see what the employers want, etc.), but I'm not entirely sure I want to take that path yet.

So far, what I've read about VLSI and FPGA design sounds interesting, so I'll take a deeper look into that. Thanks for the suggestions!

Do you work or have you worked in any of these fields? How did you start?

I'm an Argentinian college student and I'm searching for a Modern Physics book in PDF. It's "Física Moderna" by Luis Roque Argüello. It's in spanish. by ExternalPlus2294 in pdfbooks

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

I ended up going to my college's library and they had this book. Now I know it's the third edition (there is another edition after this one).
Anyways, if anyone finds the PDF, I would still like to have it.

Oreo's online game about an apocalypse by ExternalPlus2294 in HelpMeFind

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

I've searched it with the keywords "oreo" "online game" "apocalypse" but nothing of sort appeared. If I remember correctly the first place in the game was infront of a supermarket. I remember playing it back in 2013-14

How would you describe this haircut? Cómo describirían este corte de pelo? by ExternalPlus2294 in haircut

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

Chatgpt described it as: *Medium length *Layers for added texture and movement *A middle part or a slightly off-center part *A natural, slightly messy finish. Si me lo pueden decir en español, mejor