Re:After 7 Years of React.js Love,I tried Svelte and I have ...
by bit-mask on Saturday March 04, 2023 @11:41AM
(#35022156)
You can pass class names to child components in Svelte if you bind the child component's props with restProps: https://svelte.dev/repl/c16aa7a6ef714067af6f5eee0a0f453c?ver...
[ Parent
| on HN ]
Re:After 7 Years of React.js Love,I tried Svelte and I have ...
by anujkosambi on Saturday March 04, 2023 @05:31PM
(#35025135)
Yes, I know that, but I think you have to use :global operator and combining it with parent scope class, which is extra steps in Svelte