React Boilerplate

screenshot of React Boilerplate
react
styled-components

Our boilerplate based on create-react-app

Overview

Nave Boilerplate is a structured foundation built on Create React App that emphasizes coding standards and best practices. It is designed to streamline the development process, making it easier for developers to create high-quality React applications. By focusing on clean code and reusable components, this boilerplate encourages a collaborative environment where developers can contribute effectively.

The framework not only provides a clear set of guidelines for imports and JavaScript practices but also promotes the use of styled-system for styling components. This flexibility allows developers to maintain code efficiency while ensuring that styling remains consistent throughout the application.

Features

  • Standardized Code Practices: Adheres to a clear set of coding standards for imports and JavaScript to ensure maintainable code.
  • Reusable Components: Includes pre-defined components like Row, Column, and Text, which minimize unnecessary styling and promote component reuse.
  • Styled-System Integration: Leverages styled-system for managing spacing properties such as margins and paddings, allowing for cleaner and more dynamic styling through props.
  • Prop-Types Usage: Encourages the addition of prop-types in components to serve as documentation and guide future developers using the component.
  • Code Reusability: Promotes the creation of helper functions and components to avoid code duplication, enhancing maintainability.
  • Flexible Text Component: Offers a Text component with a variant property, allowing for easy variation without the need for separate components.
  • Structured Folder Organization: Follows a standardized folder structure to facilitate project navigation and organization.
  • Sentry Integration: Provides guidelines for setting up Sentry for error tracking, enabled only in production environments.
react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

styled-components
Styled Components

Styled Components is a popular library for styling React components using CSS syntax. It allows you to write CSS in your JavaScript code, making it easier to create dynamic styles that are specific to each component.

apollo
Apollo

Apollo is an open-source platform for building GraphQL APIs that connects with any data source. It provides a powerful set of tools and features for developers, including client and server-side caching, real-time data synchronization, and a seamless integration with popular frontend frameworks.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

graphql
Graphql

A website that uses GraphQL as a query language to manage data fetching and state management. This includes features such as a strongly typed schema, client-side caching, and declarative data fetching to streamline data management and optimize website performance.

Stylelint

Stylelint is a modern linter for CSS that helps you avoid errors and enforce consistent styling conventions. It provides rules for detecting errors and warnings, and can be configured to match your specific project's requirements.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

react-hook-form
React Hook Form

React Hook Form is a performant, flexible, and extensible form library for React with easy validation. It reduces re-renders and improves performance by using uncontrolled components and native HTML validation, making form handling simple and efficient.

Yup

Yup is a schema builder for runtime value parsing and validation. It provides a declarative way to define validation schemas with support for complex nested objects, array validation, and custom validation rules. Often used with Formik for form validation.