0.0.5 • Published 4 years ago

render-on-demand v0.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

render-on-demand

React component that returns children once after DOM render request.

Puppeteer tests @ specs/index.spec.ts

Example

Source

<style>{`
  input:not(:checked) ~ * {
    display: none;
  }
`}</style>
<input type="checkbox"/>
<RenderOnDemand>
  <div className="child">a</div>
  <div className="child">b</div>
</RenderOnDemand>

.child will not appear in DOM until input is checked for the first time.

<style>
  input:not(:checked) ~ * {
    display: none;
  }
</style>
<input type="checkbox">
<div></div>
0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.3-0

4 years ago

0.0.2

4 years ago

0.0.2-0

4 years ago