Jumbotron

less than 1 minute read

References

TypeScript

import { Components } from "gd-sprest-bs";

// Create the jumbotron
let el = document.querySelector("#jumbotron");
let jumbotron = Components.Jumbotron({
    el: el,
    title: "My Jumbotron",
    lead: "This is a jumbotron"
});

React

import * as React from "react";
import { Jumbotron } from "gd-sprest-bsx";

export class IDemo extends React.Component {
    // Render the component
    render() {
        return (
            <Jumbotron
                title="My Jumbotron"
                lead="This is a jumbotron"
            />
        );
    }
}

Code Playground