GithubHelp home page GithubHelp logo

rakesh-mohanta / cosmos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from react-cosmos/react-cosmos

0.0 2.0 0.0 1.37 MB

DX tool for designing truly encapsulated React components.

Home Page: https://www.youtube.com/watch?v=t9V2oKK83Kg

License: MIT License

JavaScript 91.19% HTML 3.05% CSS 5.76%

cosmos's Introduction

Cosmos

Cosmos is a JavaScript DX* tool for designing truly encapsulated React components.

Cosmos

It scans your project for React component fixtures and loads them inside ComponentPlayground, enabling you to:

  1. Render your components under any combination of props and state
  2. See component states evolve in real-time as you interact with running instances

Working with ComponentPlayground improves the component design because it surfaces any implicit dependencies. It also forces you to define sane inputs for every component, making them more predictable and easier to debug down the road.

Component Playground

*DX stands for Developer Experience, the counterpart of UX in building a product, system or service.

Requirements

  • You should already be using CommonJS modules to structure your code and webpack to bundle your modules for the browser
  • You need to create fixtures for each set of props and states you want to load your components with.

Installing

Cosmos used to be dev dependency binary, but has been transformed into a webpack boilerplate. This makes it more customizable and easier to understand. Check out the webpack-boilerplate folder for instructions.

Thank you for your interest!

Join the chat at https://gitter.im/skidding/cosmos

Explore the Contributing Guide for more information.

Thanks to Kreativa Studio for the Cosmos logo.

cosmos's People

Contributors

adaschevici avatar bbirand avatar catalinmiron avatar cef62 avatar danlipsitt avatar gaearon avatar gitter-badger avatar n1k0 avatar nighttrax avatar piatra avatar skidding avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.