Find my upcoming workshops: – Advanced React Component Patterns – The Beginner’s Guide to…

  • Making React components that can be used in multiple places is not hard.
  • Without the right patterns, you can find yourself with a highly complex component that requires a lot of configuration props and way too many if statements.
  • With this course, you’ll not only learn great patterns you can use, but also the strengths and weaknesses of each so you know which to reach for to provide your components the flexibility and power you need.
  • I have contributed to and published some of the most successful React components in the React ecosystem.
  • Through that experience, I’ve learned and taught patterns that enhnace flexibilty, usefulness, and simplicity.

Personal website of Kent C. Dodds
Continue reading “Find my upcoming workshops:

– Advanced React Component Patterns
– The Beginner’s Guide to…”

Building An E-commerce Search App with React Native 🔰

  • Unlike Cordova/Ionic/Phonegap that also lets you build mobile apps using JavaScript with WebViews, React Native compiles entirely to a native app and also allows writing native (Swift, Objective-C, Android) code when required.
  • Basic Concepts 👩â€�ğŸ�“Let’s start by briefly discussing how React Native works and how the JavaScript code actually translates into a kickass native mobile app.
  • That’s why, we, at Appbase, have built some open-source tools to help you do all these things with the matter of some clicks 😉 – Tool to add data into Elasticsearch — Importer 🗃Tool to view Elasticsearch data like an excel sheet — Data Browser 👀Tool to generate relevant Elasticsearch queries — Query Builder 🔨In this…
  • The credentials of the above app which we will be using in this tutorial are: – { – app: “good-books-ds”, – credentials: type: “good-books-ds” – }Say hello 👋 to Reactivesearch ğŸ”�We will be using ReactiveSearch, an open-source React and React Native UI components library for Elasticsearch that I am a…
  • Wait, why do I need ReactiveSearch now?ReactiveSearch simplifies the entire process of connecting to an Elasticsearch index, making queries, fetching and rendering results in sleek UI, not just that, it also lets you make your components talk to each other, i.e. if Component-A gets updated, Component-B gets to know and…

We will go over the process of building a starter e-commerce mobile app for searching through a books datastore using React native.
Continue reading “Building An E-commerce Search App with React Native 🔰”

Lessons learned testing React & Redux apps with Jest and Enzyme

Lessons learned #testing #reactjs  & #Redux #apps with #Jest and #Enzyme  #javascript

  • It makes things much easier, and you can pattern match (hit p then type part of your file/folder name) to make sure you’re not running a ton of things every save.Make sure you don’t close off your test() statements early.Parentheses man… 😢Is perfectly valid Javascript, but your test (while it…
  • I only noticed that I had this copy and pasted for one section of my unit tests when I made an error and realized the test didn’t fail.Which leads me to…Make sure your tests failIf you’re awesome and use TDD, then props to you you’re already doing this 🎉For the rest…
  • Time to move on.”However this leads to errors like the aforementioned one, and it’s surprisingly easy to grab and test the wrong element or mocked function — especially if you’re copy pasting from a similar test.It’s not hard to just comment out an essential section of a test and make sure it…
  • It’s also easy to copy to another component with a similar need for testing.In fact all of the little conventions I’m following here (beforeEach mounting a wrapper, what I name things, spreading a props object) are great to have defined somewhere so people can easily understand and copy test functionality…
  • It also makes testing quite simple and separates rendering vs data concernsI try to extract any complex data manipulation to pure functions and test thoseI use end to end (Selenium) and integration tests to check on sections of my app to make sure it all fits together.It’s not perfect, I’m…

If you don’t work at a primarily tech company, it can be a bit difficult to convince managers of the importance of things like unit testing. After being a enthusiastic supporter for quite a while, I…
Continue reading “Lessons learned testing React & Redux apps with Jest and Enzyme”