Skip to content

Commit

Permalink
Change example
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbergqvist committed Mar 3, 2021
1 parent 7afb622 commit ddfe0d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
<h2>{title}</h2>
Expand Down

0 comments on commit ddfe0d7

Please sign in to comment.