Skip to content

Instantly share code, notes, and snippets.

@sirbrillig
Created January 2, 2017 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirbrillig/34287e440ce745e2349bc6150a218a22 to your computer and use it in GitHub Desktop.
Save sirbrillig/34287e440ce745e2349bc6150a218a22 to your computer and use it in GitHub Desktop.
An example of a simple stateless functional React component
import React from 'react';
export function Header( { title, subtitle, className } ) {
return (
<div className={ className }>
<h1>{ title }</h1>
<span>{ subtitle }</span>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment