Skip to content

[question]: how does it work without slots? #24

Description

@sorvell

Describe the bug

Won't this fail if react updates the content of the button?

function Elena() {
  const [count, setCount] = useState(0);
  return (
    <elena-button variant="primary" onClick={() => {
      setCount((count) => count + 1)
    }}>
      {count}
    </elena-button>
  );
}

Affected area

Core library

How to reproduce

see example in issue

Configuration file (if applicable)

No response

Codepen link

No response

Logs

System Info

all

Before submitting

  • I’ve searched for existing issues
  • I’ve checked the documentation
  • I’ve tried the latest version of Elena

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions