teil1
This commit is contained in:
13
lab07/src/MyReset.jsx
Normal file
13
lab07/src/MyReset.jsx
Normal file
@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import './MyReset.css';
|
||||
import { useDispatch } from 'react-redux';
|
||||
|
||||
export default function MyReset() {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<button className="button" onClick={() => dispatch({ type: 'font/reset' })}>R</button>
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user