Skip to content

Instantly share code, notes, and snippets.

@nachocodexx
Created December 22, 2020 05:21
Show Gist options
  • Save nachocodexx/6927fe5d0ee499192e24053ae3a1d24c to your computer and use it in GitHub Desktop.
Save nachocodexx/6927fe5d0ee499192e24053ae3a1d24c to your computer and use it in GitHub Desktop.
# Importamos React
import RC from 'react'
# Importamos otro FunctionComponent el cual sirve como base.
import { BaseInfo } from './BaseInfo.page'
# Importar imagen de PDF (Recuerda agregar su imagen al folder images/)
import pdf from '../../images/distributions/pdf.png'
# Importar imagen de CDF (Recuerda agregar su imagen al folder images/)
import cdf from '../../images/distributions/pdf.png'
# Componente de React(Una simple funcion que retorna un HTML Element u otros FunctionComponents)
export const BinomialDisitributionInfo: RC.FunctionComponent<any> = (props: any) => {
# Agregar la descripcion de la distribucion
const description = "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Earum fugiat facere cum inventore praesentium rerum quae impedit? Officiis accusantium ratione expedita, maiores rem tempora molestias. Ipsum aperiam tempore consequatur ab."
# Retonorno de un FunctionComponent.
return <BaseInfo
title="Binomial Distribution"
isContinuous={true}
cdfImage={cdf}
pdfOrPmfImg={pdf}
description={description}
/>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment