Last active
May 28, 2020 07:49
-
-
Save SebinLee/a6ec640e805fc8c59b483ae16736060e to your computer and use it in GitHub Desktop.
React Testing Recipe 번역 - Rendering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
export default function Hello(props) { | |
if (props.name) { | |
return <h1>Hello, {props.name}!</h1>; | |
} | |
else { | |
return <span>Hey, stranger</span>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment