Answer the question
In order to leave comments, you need to log in
How to add a div next to a REACT component?
I can't add an element ... how can I do it in my case?
import React, {Fragment} from 'react';
import './List-button.scss';
const ListButton = ({items}) => {
return <Fragment>
<button className="todo-header-plus" title="Создать список дел">
{
items.map((item,index) => (
<i key={index}>{item.icon}</i>
))
}
</button>
<div>КАК СЮДА ДОБАВИТЬ ДИВ???!!!!!!!!!!<div/>
<Fragment/>
}
export default ListButton;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question