How to import `renderToString` into a plain js/ts file
handler.ts.
Inside I atm do:
``ts
const html =
<html>...Correct Syntax of passing a Component via prop
Animate on scroll in solid
Can a Solid store contain class objects?
ProtectedRoute with a redirect using @solidjs/router
@solidjs/router? All the examples I have seen, do something like user ? <Component /> : <Login />, but the url remains the same..recent SSR template or example
How to implement dangerously set innerHTML (which is there in react) in solid
Store creation and location in effector-solid and Solid Start
Render as element kind
createElement(<tag>,...). There's Dynamic but that's no SSR right?
Just to give a simple example, say you have a very nested structure layout so want some Flex component just like
const Flex = <T extends *someTagName*> (props:{tag:T}) => <*tag* style={{...*all the flex stuff*}}>{...}</*tag*>
const Flex = <T extends *someTagName*> (props:{tag:T}) => <*tag* style={{...*all the flex stuff*}}>{...}</*tag*>
"The reactive variable 'head' should be wrapped in a function for reactivity."
eslint-plugin-solid means:
The reactive variable 'head' should be wrapped in a function for reactivity. This includes event handler bindings on native elements, which are not reactive like other JSX props.
The reactive variable 'head' should be wrapped in a function for reactivity. This includes event handler bindings on native elements, which are not reactive like other JSX props.
How to create a generic Input when passing prop `class` to override styles?
cva (class-variance-authority) which allows me to create variants.
I want to allow users to pass class to override the input....Waiting for context provider to load before rendering children
How does reactivity works in createStore?
createStore for an Auth service. ...Possible to use routeData outside a component ?
How to update store with arary
Is it possible to have generic children for a generic component?
Components Props and Text
1. How can I add required props? 2. How can I add text to a Component like in the Example?...
invalidateAll
CORS when running solid client from VPS
How to untrack() or on() a props value?
untrack() a props value the way you'd untrack() a signal in a createEffect for example. Since the reactive values in props are wrapped in a getter, it seems impossible to get the Accessor that can be used in untrack() or on().
I suppose I could derive a new Accessor with something like:
```...