React – Nested Components in Tabs

By | 25/06/2019

A simple React script to create tabs in React with nested components in each tab pane.

import React from "react";
import { Tabs } from "@yazanaabed/react-tabs";

const styles = {
fontFamily: "sans-serif",
textAlign: "center"
};

const Example1 = () => (


This is tab 1


This is tab 2


);

Source: @yazanaabed/react-tabs – npm