import React from 'react';
import ReactDOM from 'react-dom';

const Layout = () => (
  <h1>It works!!</h1>
);

ReactDOM.render(
  <Layout />,
  document.getElementById('app')
);

@@ -59,21 +59,22 @@
 ';%0A%0A
-const
+%0Aclass
  Layout 
 = ()
@@ -73,18 +73,117 @@
 out 
-= () =%3E
+extends React.Component %7B%0A  static getVal(val) %7B%0A    return %60Will$%7Bval%7D%60;%0A  %7D%0A%0A  render() %7B%0A    return
  (%0A
+    
   %3Ch
@@ -198,16 +198,47 @@
 ks!!
-%3C/h1%3E%0A);
+ %7BLayout.getVal(1)%7D!%3C/h1%3E%0A    );%0A  %7D%0A%0A%7D
 %0A%0ARe

Add some function