<a href={`tel:${clinic.PHONE_REGISTRY}`}></a>
<Placemark
options={{
iconLayout: 'default#image',
iconImageHref: 'здесь путь к вашей картинке',
}}
/>
const Button = () => {
const [state, setState] = useState(false);
const onClickButton = () => setState(state => !state);
return (
<div className={state ? "btn-active" : "btn"} onClick={onClickButton}>
Button
</div>
);
};
const Buttons = () => {
return (
<div>
<Button />
<Button />
<Button />
</div>
);
};
const App = () => <Buttons />;
ReactDOM.render(<App/>, document.getElementById("root"));