Should I learn React Before Learning Clojurescript Om?

I'm going to learn Clojurescript to create user interfaces, and I want to use a React shell. Should I learn React before immersing myself in Om?

+6
source share
3 answers

Learn ClojureScript first, don’t even think about it.

The learning curve for Om is not simple, and you need to have a reasonably good understanding of the basics of the language before some abstractions that come with Om make sense (atoms, protocols, etc.). It is designed to be powerful, not simple, and affordable.

Honestly, I will try Re-agent first . The syntax for describing representations is well prepared, and it will also help strengthen your understanding of atoms. If you like it, you can complement its Re-frame for a full-blown FRP architecture.

I think it’s easier to learn Om from a Re-agent or Re-frame than from React.

+9
source

No, just immerse yourself in Om (or Reagent).

For 99% of the problems with the user interface, you do not need to know about the React basic data, after all, for this 1% of the cases you will need to refer to the React docs.

+6
source

I would not worry too much about it. You can find out through Reagent. Immerse yourself directly in the Reagent by reading the existing code. I started with the Flappy Bird demo and a few others.

To understand React, you can look for possibilities to use componentDidMount and other componentDidMount life cycle methods. But honestly, you need to understand these methods only for special use cases. Each element that has a unique key is something that will cut you, but only for outdated code, as this requirement was removed in the latest version of React.

You can also, from the very beginning, read Om Next's Codes and Tutorials. You will not understand them all at once, but keep coming back to them. I believe that the matter is for everyone!

How you approach him will also depend on whether you are a student from top to bottom or from bottom to top. The rising student may be happy to learn from one of the guides in which the queries contain metadata linking them to the components. On the other hand, a student with a downward thread can be relieved to find a complete application for learning. Here is my current best effort in a small Om Next app for understanding goals.

+6
source

All Articles