3 ms·
Sorry, can someone do a ELI5? What does it mean to be React-like? Is it a drop-in replacement? Are React components compatible? Or it just looks like React (it
by nkkollaw 10y ago
Sorry, can someone do a ELI5?
What does it mean to be React-like? Is it a drop-in replacement? Are React components compatible? Or it just looks like React (it does)?
I'm going absolutely crazy trying to keep up-to-date with all frameworks coming out nowadays.
Yesterday it was Svelte, today it's Inferno.
What's good about using this instead of React? 3k of parsing instead of 40k is a huge improvement, but can we still using stuff that was made for React?
I'm lost.
- trueadm 10y agoYou totally can use Inferno. You can use a package on NPM called "inferno-compat" to alias out React to Inferno via Webpack/Babel/Browserify if you want to. Alternatively, you can use Inferno as is and it has JSX Babel plugin, all the same top-level APIs and has the same ES2015 components as React (although we've put them in their own package called "inferno-component", as some people don't use them). I hope that helped – I'd recommend jumping on the Inferno Slack if you'd like to know/understand more: https://inferno-slack.herokuapp.com/ https://inferno-slack.herokuapp.com/
- nkkollaw 10y agoThanks.