Logo
BEAUTY IN SIMPLE

Digital Garden

A collection of short solutions to daily tech problems, notes, some thoughts and explorations that might convert into a blog post someday. My take on Learn in public concept.

title: "React"

React

  1. Display app on a full screen
  2. Add multiple components

Display app on a full screen

Add to index.css

html, body, #root, #root>div { height: 100%; }

Add multiple components

const n = 5; //number of repeats [...Array(n)].map((e, i) => <NameOfComponent key={i} />)