Skip to content

Codepen example does not seem to work  #42

@torchello

Description

@torchello

I can't make it working with SolidJS (SolidStart) with the recommended setup:

export default function Root() {
  onMount(async () => {
    themeChange();
  });
 
  /...

and

<button class="btn btn-primary" data-set-theme="dark">Dark Theme</button>
<button class="btn btn-secondary" data-set-theme="light">Light Theme</button>

When I click the button nothing happens and no errors in console. I checked the codepen example and it does not work too. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions