Open yogeshtakeo opened 1 year ago
Name: Annish Singh Github URL : https://github.com/RoneshSingh/react-redux Group 3 : Annish, Yash, Nayan
Name: Onurcan Sever GitHub Link: https://github.com/onsever/rtk-query Team Members: Bijaya, Shreesha, Onurcan
Name: Shailendra Yadav
Main Link: https://github.com/shailendrayadav7/rtk-query-todo
Team - 2
Task: RTK-Query
Name: Nayan
Main Link: https://github.com/RoneshSingh/react-redux
Forked Github link: https://github.com/GM-Frost/React-Redux.git
Team - 3 (Anish, Yash, Nayan)
Task: RTK-Query
Name: YASH KHAREL
Main Link: https://github.com/RoneshSingh/react-redux
Forked Github link: https://github.com/YashKharel19/react-redux-practice.git
Team - 3 (Anish, Yash, Nayan)
Task: RTK-Query
Name: Ngawang Sherpa Main Github Link: https://github.com/ngawangsherpa/RTK-Q.git Task 9: RTK-Query Group: 2
name : swastika singh main github link : https://github.com/ngawangsherpa/RTK-Q forked link : https://github.com/swskasingh/RTK-Q group 2
Full Stack Development Bootcamp - RTK Query Task with Vite + React
Task Description
In this task, you will learn how to use Redux Toolkit Query (RTK Query) to fetch data from an HTTP API and display it in a Vite + React application. You have the creative freedom to choose any styling library you prefer to style your components. You will use the provided HTTP link to fetch TODO items from
https://jsonplaceholder.typicode.com/todos/
and implement a "View Todos" feature in your application.Prerequisites
Before you begin, make sure you have the following installed on your system:
Task Steps
Step 1: Set Up a Vite + React Project
Open your terminal and navigate to the directory where you want to create your project.
Run the following command to create a new Vite + React project using
create-vite@latest
:Navigate into your project directory:
Step 2: Install and Configure RTK Query
Install Redux Toolkit and RTK Query as dependencies:
Set up your Redux store and configure RTK Query according to the official documentation.
Step 3: Fetch Data using RTK Query
https://jsonplaceholder.typicode.com/todos/
using RTK Query.Step 4: Create a Component to Display Todos
TodoList
in a suitable directory (e.g.,src/components
).useQuery
hook from RTK Query to fetch and display the list of TODO items in theTodoList
component.TodoItem
for the application.Step 5: Integrate the Component into App
src/App.tsx
file and import theTodoList
component.TodoList
component within yourApp
component to display the fetched TODO items.Task Completion
Congratulations! You've successfully completed the RTK Query task using Vite + React. You've learned how to use RTK Query to fetch data from an HTTP API, display it in your app, and have the flexibility to style your components using the styling library of your choice.
Submission:
The submission of the task should be done in the issue table. Paste the submission screenshot on this tasks issue table. Also give your repository.
Name:
Github URL :