Nit-Picking Magistrate

    This package has been deprecated

    Author message:

    WARNING: this project is no longer maintained

    react-backstrap

    0.2.47 • Public • Published

    NPM version react-backstrap

    Note: this module is being split into smaller pieces

    This repository builds to a UMD module in dist/rbs.js (not included in source control, but is published to npm)

    Build

    npm install && npm run build
    

    Demo

    Not yet available

    Structure

    The react components are broken into the following hierarchy under rbs.components

    • Model - These views render a model. They rely on the Model mixin.
    • Collection - These views render a collection. They rely on the collection mixin. The mixin keeps this.state.collection in sync with this.props.collection.
    • Layout - These are your typical react views that don't interact with Backbone in any way. Most of these are Bootstrap related. E.g. the alert view represents a bootstrap alert. The icon view lets you insert a fontawesome icon.
    • Controls - These views are meant to contain behavioral type code. For example, a loading wrapper can disable or hide children whenever the passed in collections or models are loading.
    • Combo - These views use some combination of other views

    These mixins are contained in rbs.mixins

    • Model - Copies the backbone model to this.state.model and provides a function for converting an array of objects into children components
    • Collection - Copies the backbone collection to this.state.collection and provides a function for rendering a model component for each model in the collection
    • Events - Mixes Backbone.Events into the react component to allow listening to backbone models and collections for events

    Install

    npm i react-backstrap

    DownloadsWeekly Downloads

    16

    Version

    0.2.47

    License

    Apache-2.0

    Last publish

    Collaborators

    • fast.model
    • moodysalem