as a codepen for those so inclined:http://codepen.io/developit/pen/NWPorQg?editors=0110 …
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
This is
. Would be great to be able to do
render( Toggle, document.body )
alternatively just a thunk
render( () => Toggle({ foo = bar }), document.body)
I think it's cleaner; and it would enable a simple way to do partial application w/ React components. -
This is actually quite different from how Virtual DOM works, and removes most of the optimizations. Returning a reference to a Component is cheap, whereas actually invoking a component (as your example shows) is expensive. It also makes it impossible to render pieces of an app.
- Još 4 druga odgovora
Novi razgovor -
-
-
it's funny that nobody has yet asked why the project has a strict size requirement of being 666b or less
- Još 2 druga odgovora
Novi razgovor -
-
not really jsx though
-
Sure, but the closest you can possibly get without a compiler. There's an infinite number of other tools techniques that could be used are compiling.
- Još 2 druga odgovora
Novi razgovor -
-
-
Wait, your can import modules from a url?!
-
I heard this was possible with some hacking. AFAIK it's not in the spec but would love if I could do this
- Još 3 druga odgovora
Novi razgovor -
-
-
Ok, I'm in !
#TeamPreactHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.