Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pascalo
on Dec 15, 2015
|
parent
|
context
|
favorite
| on:
Angular 2 Beta released
Just build the dom in JS, like so: React.createElement( string/ReactClass type, [object props], [children ...] )
rjayatilleka
on Dec 16, 2015
[–]
I haven't used React in a while, so maybe this has changed, but can't you just do something like
component = React.createFactory(MyReactComponentClass); component(props, children);
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: