<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=706355809571598&amp;ev=PageView&amp;noscript=1"> The Belighted Blog | Product Development Tips & Advice for Startups | Under the hood

React and React Native Directories Management

If you use React or React Native, you may have noticed your directory pathways sometimes look like this when you want to import something from another folder inside your components:

import NavigationBar from '../../../components/ui/NavigationBar;


Those ‘../../..’ are a nightmare to handle in your project and can be a real mess when you want to keep your project maintanable for everyone.

In this article, we will explore a better way to handle folders inside React and React native applications.

How we test our Rails projects (1/3)

Introduction

This series of blog posts will explain how we write automatic tests for our Rails projects. It will be split in 3 parts discussing the following topics :

Implementing multiple table inheritance in Rails

Rails’ way of representing model inheritance in the database is called single table inheritance, but this technique is only appropriate in specific cases. Here we propose a simple implementation of an alternative representation called multiple table inheritance.