Skip to content

Instantly share code, notes, and snippets.

@TondaHack
Created January 25, 2017 20:41
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 TondaHack/8565061f33366de5f2efd68d28a196a3 to your computer and use it in GitHub Desktop.
Save TondaHack/8565061f33366de5f2efd68d28a196a3 to your computer and use it in GitHub Desktop.
const tabsData = [
{
id: 1,
title: 'JSX',
content: 'It is called JSX, and it is a syntax extension to JavaScript. We recommend using it with React to describe what the UI should look like. JSX may remind you of a template language, but it comes with the full power of JavaScript.'
},
{
id: 2,
title: 'Stateless Component',
content: 'Stateless functional components are useful for dumb/presentational components. Presentational components focus on the UI rather than behavior, so it’s important to avoid using state in presentational components. Instead, state should be managed by higher-level “container” components, or via Flux/Redux/etc. Stateless functional components don’t support state or lifecycle methods. This is a good thing. Why? Because it protects from laziness.'
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment