Home Reactjs Spring Boot React Rest Api Bootstrap

Spring Boot React Rest Api Bootstrap

3 min read

This React and Spring boot tutorial will teach you how to view the records using Restful API.

All the Spring Boot Application Learn Here.


First we have to Install the BootStrap

npm install react-bootstrap bootstrap@5.1.3

then Add the style sheet link copy and paste  inside the head tag.i clearly explain the video tutorials below. How to add them.

After that create the Page UserList.js


import axios from 'axios';
import { useEffect, useState } from 'react';

function UserList() 
const [users, setUsers] = useState([]);

  async function  handleClick()
     const result = await axios.get(

  return (
    <div className="App">
       <h1>Employee Details</h1>
<table class="table table-dark" align="center">
      <th scope="col">#</th>
      <th scope="col">First Name</th>
      <th scope="col">Last Name</th>
      <th scope="col">City</th>
      <th scope="col">Phone</th>
      <th scope="col">Salary</th>
       {users.map(function fn(item)
                <th scope="row">{item.id} </th>

export default UserList;

After that call the  UserList Component inside the App.js

import UserList from "./pages/UserList";
import './App.css';
import {BrowserRouter,Switch,Route} from 'react-router-dom';

function App() {
  return (
    <div className="App">
          <Route path="/" exact>

i have attached the video link below. which will do this tutorials step by step.


    Load More Related Articles
    Load More By admin
    Load More In Reactjs

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Check Also

    Electricity Bill Calculation using Java Application

    This tutorils teach Electricity Bill Calculating based on the below conditions step by ste…