Problems

Render a Functional Component

EasyReact Components

A functional component is a function of props returning markup. Implement Greeting(props) that returns <h1>Hello, NAME!</h1>. Input is a JSON props object {"name": string} — print the returned markup string.

Input: one JSON props object. Output: the markup string.

Your program reads from stdin and prints to stdout.

Example 1

Input: {"name":"Ada"}

Output: <h1>Hello, Ada!</h1>

Hints

ReactComponents