1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00

Update React imports

This commit is contained in:
Phuoc Nguyen
2021-04-01 17:01:38 +07:00
parent 538e5f750e
commit ebc2586a3f
200 changed files with 216 additions and 216 deletions

View File

@@ -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 RelatedPatterns from '../../components/RelatedPatterns';
@@ -12,7 +12,7 @@ import DetailsLayout from '../../layouts/DetailsLayout';
import BrowserFrame from '../../placeholders/BrowserFrame';
const Details: React.FC<{}> = () => {
const [value, setValue] = useState(0);
const [value, setValue] = React.useState(0);
const decrease = () => setValue(value - 1);
const increase = () => setValue(value + 1);
const change = (e: React.ChangeEvent<HTMLInputElement>) => {