MCPcopy Create free account
hub / github.com/FormidableLabs/react-live / Index

Function Index

website/src/pages/index.tsx:26–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24`.trim();
25
26export default function Index() {
27 return (
28 <Layout
29 title="React Live"
30 description="A flexible playground for live editing React components"
31 >
32 <div className="dark:bg-gray-500 bg-gray-200 dark:text-white text-theme-2">
33 <LandingHero
34 heading="React Live"
35 body="A flexible playground for live editing React components"
36 copyText="npm install react-live"
37 navItems={[
38 { link: "/open-source/react-live/docs", title: "Documentation" },
39 { link: "#demo", title: "Demo" },
40 {
41 link: "https://github.com/FormidableLabs/react-live",
42 title: "Github",
43 },
44 ]}
45 />
46 </div>
47 <LandingFeatures
48 heading="Features"
49 list={[
50 {
51 imgSrc: responsiveFeature,
52 alt: "logo alt",
53 title: "Live Rendering",
54 body: "React Live brings you the ability to render React components with editable source code and live preview",
55 },
56 {
57 imgSrc: styleFeature,
58 alt: "logo alt",
59 title: "Customizable",
60 body: "React Live is structured modularly and lets you style and compose its components freely",
61 },
62 {
63 imgSrc: nativeFeature,
64 alt: "logo alt",
65 title: "Lightweight Bundle",
66 body: "Lightweight and performant, React Live is built with minimal dependencies and optimized for speed",
67 },
68 ]}
69 />
70 <div
71 className="flex flex-col text-left mx-16 lg:mx-32 xl:mx-64"
72 id="demo"
73 >
74 <LandingDivider />
75 <h2 className="my-8 text-4xl font-semibold">Demo</h2>
76 <p>Edit the code for live updates!</p>
77 <DemoLiveEditor code={jsxExample} />
78 </div>
79 <LandingFeaturedProjects
80 heading="More Open Source from Nearform Commerce"
81 showDivider
82 projects={[
83 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected