Comments (2)
TLDR;
No, we can't use JSX in Catberry.
The way Catberry works, it can theoretically use any template engine if you can implement the TemplateProvider for it (for server, you need an additional method to compile the templates).
So, the basic idea is to compile any template to a string during the bundle build process. After it becomes a part of the browser bundle you can use the compiled string to make the template active in a browser.
JSX was created to mix JavaScript logic and DOM representation, we're not able to just compile it to a string and then activate in a browser because it requires all the source code around it. I personally still don't like the whole idea behind JSX.
One of the Catberry's goals is to have a dedicated place for a template and don't mix it with the source code. It keeps projects more organized and less confusing IMO.
from catberry.
Okay, thanks for the answer.
from catberry.
Related Issues (20)
- Tests for watchers in "debug mode" are not passing on Mac HOT 1
- Problems with patching attributes HOT 1
- Pluralsight course for CatberryJS? HOT 4
- Possible to use with [email protected]? HOT 2
- Jade package renamed to Pug and now deprecated HOT 3
- Empty location.hash adds when clicked on link with current location address. Firefox only. HOT 1
- Remove `sendBroadcastAction` method from the context
- Drop IE <=10 support and extend new JavaScript features HOT 6
- Use babili once it's ready HOT 1
- Don't overwrite a bundle file if the hash is the same HOT 1
- Drop Node.js < 6.10
- Catberry 9.0 readiness checklist HOT 1
- Remove `develop` branches and forbid `merge commits`
- Render Document method does not have a check for `null`
- Catberry 9 testing checklist HOT 4
- Page scrolls to top after using browser bac/forward buttons HOT 10
- Sharing state obtained from external source between client and server HOT 2
- npm run debug-win Error HOT 1
- How can I make it better? 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 catberry.