-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tiffany White
committed
Aug 2, 2018
1 parent
8555e8b
commit bc01ae4
Showing
8 changed files
with
144 additions
and
33 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class MyComp extends React.Component { | ||
render() { | ||
return <div>{this.props.text}</div> | ||
} | ||
} | ||
|
||
const MyFuncComp = (props) => { | ||
return <div>{props.text}</div> | ||
} | ||
|
||
const MyDestructuredFuncComp = ({text}) => <div>{text}</div> | ||
|
||
class MyApp extends React.Component { | ||
render() { | ||
const someText = ['some', 'text'] | ||
return ( | ||
<div> | ||
{someText.map(text => <MyComp text={text}/>)} | ||
{someText.map(text => <MyFuncComp text={text}/>)} | ||
{someText.map(text => MyDestructuredFuncComp({text}))}{/* another way to call the component */} | ||
</div> | ||
) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { Hero, Title, SubTitle, Container } from 'reactbulma'; | ||
import '../smde-editor.css'; | ||
|
||
class Footer extends React.Component { | ||
render() { | ||
return ( | ||
<Hero className="change-header push-down"> | ||
<Hero.Foot> | ||
<Container> | ||
<Title className="change-text"> | ||
Primary title | ||
</Title> | ||
<SubTitle className="change-text"> | ||
Primary subtitle | ||
</SubTitle> | ||
</Container> | ||
</Hero.Foot> | ||
</Hero> | ||
); | ||
} | ||
} | ||
|
||
export default Footer; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import { Message } from 'reactbulma'; | ||
import '../smde-editor.css'; | ||
|
||
class MessageText extends React.Component { | ||
render() { | ||
return ( | ||
<div class="fit pad-bottom"> | ||
<Message class="change-body body-styles"> | ||
<Message.Header class="fit change-header change-text header-styles" > | ||
<p>You're checking out Check Yo Self</p> | ||
</Message.Header> | ||
<Message.Body> | ||
<h2>Hey! <span role="img" aria-label="wave-emoji-brown">👋🏾</span></h2> | ||
<p>This is Check Yo Self, an app to check the <span class="highlight">grammar and spelling</span> of your <span class="highlight">markdown blog posts</span>.</p> | ||
<p> | ||
|
||
</p> | ||
</Message.Body> | ||
</Message> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default MessageText; |
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
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
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