mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-11 08:34:27 +02:00
Update React imports
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
|
||||
*/
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import * as React from 'react';
|
||||
import { Helmet } from 'react-helmet';
|
||||
|
||||
import Heading from '../../components/Heading';
|
||||
@@ -13,7 +13,7 @@ import DetailsLayout from '../../layouts/DetailsLayout';
|
||||
import BrowserFrame from '../../placeholders/BrowserFrame';
|
||||
|
||||
const Details: React.FC<{}> = () => {
|
||||
const [isFirstChecked, setFirstChecked] = useState(false);
|
||||
const [isFirstChecked, setFirstChecked] = React.useState(false);
|
||||
const toggle = () => setFirstChecked((c) => !c);
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user