Код: Выделить всё
import React from 'react';
import Switch from 'react-switch';
export function App(props) {
const [checked, setChecked] = React.useState(false);
const handleChange = nextChecked => {
setChecked(nextChecked);
};
return (
Simple usage
Switch with default style
The switch is {checked ? 'on' : 'off'}.
);
}
Как решить эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/796 ... -top-of-it
Мобильная версия