Closed raphamorim closed 4 years ago
hmm, maybe something like would be better:
import React from 'react';
import { registerComponent, View, render } from 'reactApe';
function Carousel(props, canvasContext) {
// ctx.rect();
// draws carosel
}
registerComponent('Carousel', Carousel);
const myApp = () => (
<View>
<Carousel dataSource={...}/>
</View>
);
render(myApp, documentQuerySelector('#canvas-id'));
first draft: