|
|
|
|
|
by ______-_-______
1572 days ago
|
|
Solid's <For> doesn't rely on any build-time magic, other than the JSX custom function call syntax that is also present in React. If you want, you can even call it like an ordinary function: function MyComponent() {
return For({
each: [1,2,3,4],
children: x => <div>{x}</div>,
})
)
It's just a function call, and it doesn't even need `React.createElement`. What's more pure than that? |
|