|
|
|
@ -17,7 +17,7 @@ function App() { |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/*// ## Functional code created using ES6 (React Hooks) ## |
|
|
|
/*// ## Functional code created using React Hooks and ES6 ## |
|
|
|
const App = props => { |
|
|
|
const App = props => { |
|
|
|
const [charState, setCharState] = React.useState({ |
|
|
|
const [charState, setCharState] = React.useState({ |
|
|
|
character: [ |
|
|
|
character: [ |
|
|
|
|