Resolve #53
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
Renders a tooltip component.
|
||||
|
||||
Use the `React.useState()` hook to create the `show` variable and initialize it to `false`.
|
||||
Return a `<div>` element that contains the `<div>` that will be the tooltip and the `children` passed to the component.
|
||||
Handle the `onMouseEnter` and `onMouseLeave` methods, by altering the value of the `show` variable.
|
||||
* Use the `React.useState()` hook to create the `show` variable and initialize it to `false`.
|
||||
* Return a `<div>` element that contains the `<div>` that will be the tooltip and the `children` passed to the component.
|
||||
* Handle the `onMouseEnter` and `onMouseLeave` methods, by altering the value of the `show` variable.
|
||||
|
||||
```css
|
||||
.tooltip {
|
||||
|
||||
Reference in New Issue
Block a user