Getting Started with React Cosmos

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • cosmos-js

    Sandbox for developing and testing UI components in isolation

  • React Cosmos is a library that provides a sandbox environment for developing and testing React components in Isolation.

  • react-testing-library

    🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

  • There are many ways to test component UIs and some testing frameworks help us achieve that, to mention but a few react-testing-library, where we write tests to check what a component has, for example, if we are testing a form component, we will write tests to check it a button is rendered, if there are input and/or select tags, etc and we usually see the results in our terminals but with React cosmos, we have a visual way to test our components (Visual TDD) which makes testing easier.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • cosmos-food

    React cosmos demo app

  • To get started, we will clone the food ordering app from here. You can do that by running the command below in your terminal (make sure you have git installed in your machine).

  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • It only supports CRA and Nextjs officially, It also supports the use of Typescript.

  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

  • In this project, we are using tailwind for styling, and react-router-dom for routing.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts