0.0.3 • Published 5 years ago

@jolobo/react-pedigree v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

react-pedigree

React component for displaying a pedigree.

Installation

Install via NPM npm i @jolobo/react-pedigree.

Example Usage

import React from 'react'
import Pedigree from '@jolobo/react-pedigree'

const Example = () => {
    const family = [
        [
            {
                name: 'James Smith',
                dob: '10-01-2019'
            }
        ],
        [
            {
                name: 'Jerry Smith',
                dob: '10-01-2019'
            },
            {
                name: 'Jane Smith',
                dob: '10-01-2019'
            }
        ]
    ]

    return (
        <Pedigree data={family} />
    )
}