I have been learning react for the past two weeks and I thought I would share my “why” as I had promised here.
I always believe it is important to understand why you are learning something and the impact it has. When I joined Ona, I started working on Clojure projects and I loved the shift from object-oriented programming.
I later learned about Re-frame (A Reagent Framework For Writing SPAs, in Clojurescript.) and boy did it make my life easier! With time I realized the beauty of components and that is when I thought why not try out React. After all, we have Clojurescript frameworks that use React concepts i.e reagent.
My goal for learning react is to:
- Help me familiarize with other languages apart from Clojure.
What is React
React is a library for creating user interfaces created by Facebook.
A library is a collection of code that stores particular useful routines particularly useful for storing frequently used routines because you do not need to explicitly link them to every program that uses them. (referenced from https://www.webopedia.com)
A user interface is a way that a user interacts with the system.
Facebook….well, you all know!
Why did I choose React
- Use of components! Having worked with reagent, I have learned the beauty of components. Components can be reused over and over, hence, we avoid repetition.
- React loads pages instantly because it runs in the browser.
I hope those are valid reasons to get you to this other side…the react side.
Happy coding! 😊 🙂