0.0.0 • Published 6 years ago

stationaryjs v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

stationaryjs

Bunch of static data needed in apps like time-zones list, states list, country codes etc.

Install

npm install stationaryjs --save

or using yarn

yarn add stationaryjs

 

usage

import React, { Component } from "react";
import { countries } from "stationaryjs";

class Preview extends Component {
    render () {
        return (
            <div>
                <select>
                {
                    countries.map((country, index) => <option key={index} value={country.value}>{country.name}</option>)
                }
                </select>
            </div>
        )
    }
}

 

like it?

:star: this repo

Contributors

PRs are welcomed.

license

MIT © priyanshujain