Recently, I attended my first ReactJS meetup in Bangalore. The meetup was hosted at Codemancers .
Kiran, an organizer of this meetup gave a talk titled Introduction to React Native. You can find the slides used as part of his talk on this link. Below are some quick notes that were jotted down based on the discussions at the meetup around the talk and also around varying experiences of the other attendees who've tried React.
- Discussion around ReactJS -
- Treat the application as small components
- We can compose those components to build large components
- jQuery etc., is imperative whereas React is declarative
- React handles states differently
- React uses different features like composition etc.,
- Interestingly React web and native supports writing some basic CSS properties within the React JS file itself.
- In react whenever the state changes, we update the view via the Virtual DOM.
- React components are tiny and manageable, one has more control over data when using React
- Discussion around React Native
- React Native is mainly for iOS apps at the moment. Support for Android is something that they've planned for the future.
- Development using React native can be done only on Mac at the moment because it depends on things like xcode etc.,
- to use in other operating systems Ubuntu → use a mac virtual box..(not officially supported by Apple)
- Has a steeper learning curve when compared to reactjs
- Learn once and write everywhere principle
- React native is mainly for the mobile apps with native experience
- Debugging can be done via chrome dev tools
- React native implements Flexbox(flexbox is a new layout module for web)
- Components like div etc., have equivalent things like View etc.,
- They try running react with the iOS simulator
- General discussion
- People definitely find it better than Angular. One of them even said that react is not only easier for him as a developer, but also it’s useful for other developers on the same project who may not be working on building similar JS stuff
- React Native is better than Web in terms of the UI
- Check out todomvc.com to help decide which JS framework can be used to better suit your needs.
- There is something like even the react developer tools through which you can even change the state or something on those lines.
- To get started with react
- http://www.reactstarterkit.com/ - It will have all the build tools that we need.
- An open source project that Kiran is working on -
- Things to research further about in the context of React
- ReactJS style guide
- Around this topic there was a discussion that folks can use Flux as their application goes bigger in size.
- How to write tests in React
I would like to thank Codemancers for hosting us, Kiran for sharing his experiences of using React via his talk and all the attendees for the interesting discussions we had around React.
Since these are quick notes, please feel free to correct me if there is a typo in something or if I've incorrectly mentioned something. Also, please feel free to add more points as comments that were discussed as part of the meetup in case I missed mentioning something, I'll update the post accordingly.