🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

faster-react-tabs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faster-react-tabs

A faster React tab component that doesn't use DOM refs. Written in ES6, transpiles down to ES5

0.0.2
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Simple + Clean React Tabs

Demo here

  • Written the "React Way" without hitting the DOM with refs.
  • ES6, transpiles down to ES5.
  • If your app renders server-side, then the tabs can just render as a list for non-JS users.

##Install npm i faster-react-tabs --save to add to your project.

Get the example running locally:

  • npm install
  • npm run build
  • npm run watch

Example: Drop-in Tabs component

npm i faster-react-tabs --save

'use strict'
var React = require('react');
var Tabs = require('faster-react-tabs');

var YourThing = React.createClass({

  render() {
    var sections = [
      {
        title: "Tab 1",
        content: "Tab 1 content"
      },
      {
        title: "Tab 2",
        content: "Tab 2 content"
      },
      {
        title: "Tab 3",
        content: "Tab 3 content"
      }
    ];

    return (
      <div>
        <Tabs sections={sections} />
      </div>
    );
  }

});

module.exports = YourThing;

Keywords

react

FAQs

Package last updated on 15 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts