parent
5af3fabe17
commit
94ae04d17b
@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
|
||||
const StudentList = ({ students }) => {
|
||||
return (
|
||||
<ul>
|
||||
{students.map((student) => (
|
||||
<li key={student.studentId}>
|
||||
{student.name} (ID: {student.studentId}, Points: {student.points})
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
};
|
||||
|
||||
export default StudentList;
|
Loading…
Reference in new issue