jamiebuilds / Renderator
Stars: ✭ 65
Programming Languages
javascript
184084 projects - #8 most used programming language
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>
);
});
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].