Comments (11)
Okay keep in mind createElement is isomorphic and createVNode is monomorphic, this has significant difference in perf. Maybe we should write jsx:inferno
to reduce overhead.
from inferno-typescript-example.
I made without babel example here
from inferno-typescript-example.
For comparison, my react-server-example-tsx does not use bable.
from inferno-typescript-example.
@MKGaru how does it work without babel-plugin-inferno
? that compiles divs into Inferno specific createVNode
calls
from inferno-typescript-example.
@Havunen with createElement ( inferno-create-element ) and transpile jsx:react by typescript
from inferno-typescript-example.
Happy news!
Typescript 2.3 will ship support for custom transformers. I think we could create inferno-jsx-typescript plugin to transform jsx into createVNodes instead of createElement.
:)
from inferno-typescript-example.
This was btw delayed till 2.4 due to bugs in their API...
from inferno-typescript-example.
@Havunen I'm not familiar with the custom transformers, but TS 2.4 landed a week ago.
from inferno-typescript-example.
Btw. Initial work for custom TSX compiler is done! Have a look: infernojs/inferno#1154 but it needs testing! :)
from inferno-typescript-example.
babel 7 has support for typescript so this is the recommended way now.
from inferno-typescript-example.
This PR now removes babel: #18
from inferno-typescript-example.
Related Issues (9)
- JSX type errors with tag of type StatelessComponent<P> (Inferno@6) HOT 4
- render() does not seem to replace existing DOM elements inside the container when first called. HOT 1
- Cannot find module 'webpack-cli/bin/config-yargs' HOT 1
- Unable to build example HOT 4
- Add a tsx example. HOT 1
- Inferno Router HOT 3
- css is not served when running with npm start HOT 1
- Value-based element properties are not type-checked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inferno-typescript-example.