From ddfe0d710b87266451cfd57634d707fcda2178a9 Mon Sep 17 00:00:00 2001 From: Mathias Date: Wed, 3 Mar 2021 20:16:54 +0100 Subject: [PATCH] Change example --- react-examples.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react-examples.md b/react-examples.md index 152e133..2af6abc 100644 --- a/react-examples.md +++ b/react-examples.md @@ -6,7 +6,9 @@ //MyComponent.js import React from "react"; -const MyComponent = ({ title, content }) => { +// const MyComponent = ({ title, content }) => {... +const MyComponent = (props) => { + const { title, content } = props; return (

{title}