Questions tagged [solid-js]

For questions related to the Solid Javascript framework (see solidjs.com)

Solid is a JavaScript library with built-in state management and fine grained reactivity for creating user interfaces.

It is a high performance alternative to React which compiles to real DOM nodes. It supports SSR, streaming and progressive hydration.

242 questions
4
votes
3 answers

Conditional styling in SolidJS

I have a Component in SolidJS that looks something like this: const MyComponent: Component = (params) => { // ... const [votes, setVotes] = createSignal(new Set()); const toggle = (val: string) => { if (votes().has(val)) { let _votes…
Jomy
  • 514
  • 6
  • 22
4
votes
2 answers

Typescript+SolidJS: how can I extend props of some JSX element?

How can I extend in SolidJS props of some existing JSX element and create my custom interface like this ButtonProps interface in the given below example for React. import React from 'react'; interface ButtonProps extends…
Seweryn Niemiec
  • 1,123
  • 2
  • 13
  • 19
4
votes
1 answer

Typescript - Solid.js