Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Let me provide a different viewpoint. React is important for ClojureScript developers for slightly different reasons. It is a well-maintained solution for quickly rendering component-based applications based on immutable data structures.

In other words, you can think of the user interface as a function of your app's state, where the state is neatly kept in one place, instead of smeared all over the code. And since ClojureScript has excellent immutable data structures, you get great performance right out of the box. Things that do not need to be re-rendered aren't.

So, when React arrived it fit like a well-designed glove. Suddenly one could easily create complex apps with few lines of code and great performance.

As a side note, there are some aspects of React that we don't care about. JSX is one: various lisp-like languages have been using vector/list syntax for HTML for years, so in ClojureScript you don't have to use a separate syntax or pre-process your files: your functions just return nested vectors with HTML elements. Much more natural.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: