Problems

Functional Component

MediumSorting

Write a program that renders a functional component. The input will contain a string representing the component's props. The output should be the rendered component. For example, if the input is name=John&age=30, the output should be <div>Hello, John! You are 30 years old.</div>.

Hints

ReactJSXFunctional Component