Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

98
Vistas
Create multiple instances of components that should get added next to each other: ReactJS

I need to create a set of card components that should get added up to bottom right of the screen. This card should be created on click of as button and clicking on some other button should add the card next to each other. I am having trouble creating this card component that should stick to the bottom right of the screen.

This is similar to linkedin website chat, that gets shown at the bottom right, and opening a chat will add that to the previously opened card

Can someone help as to how to get started or a simple example of how to add two cards to the bottom right of the screen on clcik of two different buttons?

Link to the sandbox : https://codesandbox.io/s/react-hook-form-with-material-ui-forked-c9o8ck

Code

// App.jsx
import React from "react";
import { Button } from "@material-ui/core";
import { Panel } from "./Panel";

export const App = () => {
  return (
    <>
      <Button>Button1</Button>
      <Button>Button2</Button>
      <Panel />
    </>
  );
};

// Panel.jsx
import React from "react";

export const Panel = () => {
  return <div> Panel Content</div>;
};
about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda