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 (