Guest User

Untitled

a guest
Oct 19th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function __$createComponent() {
  2. ...
  3. }
  4.  
  5. class MyComponent extends React.Component {
  6. render(props) {
  7. return [props.className, 0, props.items.length, __$createComponent]
  8. }
  9. _bytecode = [
  10. OPEN_ELEMENT_DIV,
  11. PROP_CLASSNAME, 'container',
  12. CREAT_ELEMENT_UL,
  13. PROP_CLASSNAME, 0, // render [0]
  14. OPEN_FOR_LOOP,
  15. 1, // render [1]
  16. 2, // render [2]
  17. LOOP_INCREMENT,
  18. OPEN_BLOCK,
  19. COMPONENT, 3, // render [3]
  20. CLOSE_BLOCK,
  21. CLOSE_FOR_LOOP,
  22. CLOSE_ELEMENT_UL,
  23. CLOSE_ELEMENT_DIV,
  24. ]
  25. }
Add Comment
Please, Sign In to add comment