Complete the code to define a React component with a proper name.
function [1]() { return <div>Hello!</div>; }
React component names must start with a capital letter and be valid JavaScript identifiers.
Complete the code to export a React component with a correct name.
const [1] = () => { return <p>Hi!</p>; }; export default [1];
Component names should be PascalCase starting with a capital letter.
Fix the error in the component name to follow React naming rules.
export function [1]() { return <span>Test</span>; }
Component names must start with a capital letter and cannot start with numbers or underscores.
Fill both blanks to correctly define and export a React component.
const [1] = () => { return <h1>Welcome</h1>; }; export default [2];
Both the variable and export name must match and follow PascalCase naming.
Fill all three blanks to create a valid React component and export it.
import React from 'react'; function [1]() { return <section>[2]</section>; } export default [3];
The function and export names must match and be PascalCase. The content inside the section is a string and must be quoted.