Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, {useState} from 'react';
- import WithEmberSupport from 'ember-react-components';
- export default WithEmberSupport(() => {
- const [counter, changeCounter] = useState(0);
- return <h1 onClick={() => { changeCounter(counter+1)}}>Hello from react {counter}</h1>;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement