Initial Commit Performing Crud Operations #1

Merged
rishabh merged 5 commits from dev into main 2025-01-03 05:43:13 +00:00
Owner
No description provided.
bansh_dml added 1 commit 2025-01-01 11:18:20 +00:00
bansh_dml requested review from rishabh 2025-01-01 11:18:51 +00:00
rishabh requested changes 2025-01-01 12:02:37 +00:00
Dismissed
src/App.jsx Outdated
@ -0,0 +6,4 @@
import './styles.css'; // Importing the CSS file
const App = () => {
const [users, setUsers] = useState([]);
Collaborator

States and Data management need to be done inside the routes.

States and Data management need to be done inside the routes.
bansh_dml marked this conversation as resolved
src/App.jsx Outdated
@ -0,0 +25,4 @@
{/* User List Route */}
<Route
path="/"
element={<UserList users={users} setUsers={setUsers} />}
Collaborator

Don't pass the params here where you defining the routes. It effects the component reusability

Don't pass the params here where you defining the routes. It effects the component reusability
@ -0,0 +10,4 @@
const handleDelete = () => {
console.log("Users before deletion:", users);
console.log("ID to delete:", userId);
Collaborator

remove console statements

remove console statements
bansh_dml added 1 commit 2025-01-02 04:23:10 +00:00
bansh_dml added 1 commit 2025-01-02 06:40:18 +00:00
bansh_dml added 1 commit 2025-01-03 04:45:00 +00:00
rishabh requested changes 2025-01-03 05:33:24 +00:00
Dismissed
@ -0,0 +15,4 @@
setUser(foundUser);
} else {
const fetchUsers = async () => {
const response = await fetch("https://jsonplaceholder.typicode.com/users");
Collaborator

use fetch single user by id

use fetch single user by id
bansh_dml added 1 commit 2025-01-03 05:42:43 +00:00
rishabh approved these changes 2025-01-03 05:43:04 +00:00
rishabh merged commit 20b803fe88 into main 2025-01-03 05:43:13 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: bansh_dml/Assignment4_Performing_Crud_Operations#1
No description provided.