Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function __$createComponent() {
- ...
- }
- class MyComponent extends React.Component {
- render(props) {
- return [props.className, 0, props.items.length, __$createComponent]
- }
- _bytecode = [
- OPEN_ELEMENT_DIV,
- PROP_CLASSNAME, 'container',
- CREAT_ELEMENT_UL,
- PROP_CLASSNAME, 0, // render [0]
- OPEN_FOR_LOOP,
- 1, // render [1]
- 2, // render [2]
- LOOP_INCREMENT,
- OPEN_BLOCK,
- COMPONENT, 3, // render [3]
- CLOSE_BLOCK,
- CLOSE_FOR_LOOP,
- CLOSE_ELEMENT_UL,
- CLOSE_ELEMENT_DIV,
- ]
- }
Add Comment
Please, Sign In to add comment