Skip to content

Instantly share code, notes, and snippets.

@iamparthaonline
Created February 17, 2022 12:15
Show Gist options
  • Select an option

  • Save iamparthaonline/928b141758ae31fb169e7f6e2aad0f2d to your computer and use it in GitHub Desktop.

Select an option

Save iamparthaonline/928b141758ae31fb169e7f6e2aad0f2d to your computer and use it in GitHub Desktop.
import React from "react";
const FunctionalContentComponent = function (props) {
return (
<body>
{props.list.map(({ title, paragraph }, index) => (
<React.Fragment key={index}>
<h1>{title} </h1>
<p>{paragraph}</p>
</React.Fragment>
))}
</body>
);
};
export default FunctionalContentComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment