as
<Form.Control as="select" defaultValue="Choose...">
<option>Choose...</option>
<option>...</option>
</Form.Control>
Size: a a a
as
<Form.Control as="select" defaultValue="Choose...">
<option>Choose...</option>
<option>...</option>
</Form.Control>
W
as
defaultValue
пусть будет выбранW
as
AS
W
Λ
AS
Λ
{topics.map((item, pos) => {Так не работает, потому что ререндер не происходит
return (
<Button key={item.id} onClick={() => {
const t = topics;
t[pos].disabled = !topics[pos].disabled;
setTopics(t);
}} disabled={item.disabled}>{item.name}</Button>
);
})}
AS
as
const t = topics;
AS
13
as
const t = [...topics];
Λ
const t = [...topics];
AS
13
DS
13