Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {useState} from 'react';
  2. import WithEmberSupport from 'ember-react-components';
  3.  
  4. export default WithEmberSupport(() => {
  5.     const [counter, changeCounter] = useState(0);
  6.  
  7.     return <h1 onClick={() => { changeCounter(counter+1)}}>Hello from react {counter}</h1>;
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement