8000 GitHub - jamiewinder/renderator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jamiewinder/renderator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just playing around with ideas from: https://github.com/Astrocoders/regenerator

Before:

function Example() {
  return (
    <Time>
      {({ time }) => (
        <p>Current time: {time.toLocaleString()}</p>
      )}
    </Time>
  );
}

After:

const Example = renderator(function*() {
  let { time } = yield <Time/>;
  return (
    <p>Current time: {time.toLocaleString()}</p>
  );
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.4%
  • HTML 12.6%
0