Skip to content

2.0.0

Compare
Choose a tag to compare
@developit developit released this 04 Nov 00:54
· 11 commits to master since this release
  • Add support for Pure Functional Components!
const Box = ({ title, children }) => (
  <div class="box">
    <h4>{title}</h4>
    {children}
  </div>
);

console.log(
  <div>
    <Box title="foo">
      Hello, I am <strong>foo</strong>.
    </Box>
    <Box title="bar">
      Hi! I am <strong>bar</strong>!
    </Box>
  </div>
);

This logs:

<div>
  <div class="box">
    <h4>foo</h4>
    Hello, I am <strong>foo</strong>.
  </div>
  <div class="box">
    <h4>bar</h4>
    Hi! I am <strong>bar</strong>!
  </div>
</div>
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy