Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

258
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda