Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

261
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!