Script Valley
React.js: Complete Course
React Fundamentals/Assessment

Practice & Assessment

Test your understanding of React Fundamentals

Multiple Choice Questions

5
1

What does the React Virtual DOM primarily help with?

2

Which attribute replaces 'class' in JSX?

3

What happens when you write a React component starting with a lowercase letter, e.g. <myComponent />?

4

Which statement about props in React is correct?

5

What does `props.children` contain?

Coding Challenges

1
1

Build a Profile Card Component

Create a ProfileCard component that accepts name (string), role (string), avatarUrl (string), and bio (string) as props. Render a card layout showing all four values. The component must use destructured props, apply className attributes for styling, and handle a missing bio with a default value of 'No bio provided'. Expected output: a rendered card with all fields visible. No external libraries. Estimated time: 20 minutes.

Easy

Mini Project

1

Team Directory Page

Build a static team directory using only React fundamentals. Create a TeamMember component that accepts name, role, department, and email props. Create a TeamDirectory parent component that renders at least 5 TeamMember instances with hardcoded data. Add a PageHeader component that accepts a title and subtitle prop. Structure the app with App.jsx as the root. Use JSX correctly (className, self-closing tags, fragments where needed). No state, no hooks — props and composition only.

Easy