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

260
Vistas
How to use Next and Previous Button in reactjs for the below case?

Suppose I have five pages and I have a common footer containing previous and next button and the flow to show the five pages are fixed and I want the previous button to be used to display the last page and the next button to display the upcoming page.

Below is the code :

Index.js

import React, { Fragment } from 'react';
import ScreenDamage from './ScreenDamage'; //1st screen
import BatteryDamage from './BatteryDamage'; // 2nd screen
import MicDamage from './MicDamage'; // 3rd screen
import ExternalDamage from './ExternalDamage'; // 4th Screen
import Footer from './Footer';
import styles from './manualCheck.module.scss';
import AdditionalChecks from './AdditionalChecks' // 5th screen

const { Wrapper } = Foundations;

const ManualCheck = () => {
  return (
    <Fragment>
      <ScreenDamage /> //1st Screen
      <BatteryDamage /> //2nd Screen
      <MicDamage />  //3rd Screen
      <AdditionalChecks />  //4th Screen
      <ExternalDamage />  //5th Screen
        <div className={styles.footer}>
          <VerticalSpacing />
          <Footer />
        </div>
    </Fragment>
  );
};

export default ManualCheck;

Footer.js

import React from 'react';
import InlineLink from '/InlineLink';
import styles from './manualCheck.module.scss';

const StepLayoutFooter = () => (
  <div className={styles.setupFooter}>
    <div className={styles.previousButton}>
      <InlineLink>
        <a
          href="#"
          onClick={() => {
          }}
        >
          Back
        </a>
      </InlineLink>
    </div>
    <div className={styles.nextButton}>
      <InlineLink>
        <a
          element="a"
          href=""
          onClick={() => {}}
        >
          Next
        </a>
      </InlineLink>
    </div>
  </div>
);

StepLayoutFooter.defaultProps = {
};

export default StepLayoutFooter;
about 4 years ago · Juan Pablo Isaza
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