sbalay / trello-redux-example

Repository from Github https://github.comsbalay/trello-redux-exampleRepository from Github https://github.comsbalay/trello-redux-example

React kickoff template

This project was bootstrapped with Create React App.

In this file you will find useful documentation about setting up, running and extending this project. You can find the most recent version of this guide here.

Folder Structure

The component division and files/folders structure is created following this proposal

Config

You need a file named .env in the project rootpath with the following variables:

REACT_APP_API_BASE_URL=xxxxxx

Styles

We use scoped styles per component, powered by Radium library.

This makes us write inline styles using JS objects and 0% of css. This is an important decision that has a high impact in the project development and is mainly based on the pros and cons exposed in this talk.

Performance debugging

This project also supports performance debugging using react-addons-perf.

To use it, open a browser console within your project. Then,

// Start measurement
Perf.start()

// Do stuff in your project

// Stop measurement
Perf.stop()

// Prints changes count on Virtual DOM that doesn't impact on render()
Perf.printWasted()

It's recommended to check official reference here.

Dev tools

This project is already configured to take advantadge of the following tools:

We strongly recommended installing the browser extensions and use them during development.

About


Languages

Language:JavaScript 90.8%Language:HTML 5.7%Language:CSS 3.5%