Blog application

Report a typo

You are working on a blog application. The class component BlogPost receives a title prop and displays it within an <h2> element.

import React, { Component } from "react";

class BlogPost extends Component {
  render() {
    return <h2>{...}</h2>;
  }
}

export default BlogPost;

How the title prop would be received within an h2 element?

Enter a short text

Create a free account to access the full topic