For those who don't know, the classic 'Lorem ipsum' phrase used in graphic/web design comes from an incredibly profound work by the philosopher, Cicero. You can find it online in English with a quick Google search. I pulled this specific text from this site
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
You should install this into your components directory within /src.
So it should essentially look like this:
cd components
git clone <https://github.com/actuallyitsnathaniel/React-LoremIpsum.git>
Super simple, if you've used git before.
Simply import the function like so in your React index.js, or wherever you want it:
import {LoremIpsum} from './components/React-LoremIpsum'
Then call it as just a closing tag like so:
<LoremIpsum />
It can be placed just about anywhere, it's a <div>
split into two <p>
's.
I read Cicero's "On Obligations" in college, but wasn't significantly impacted by it until recently-which is when I connected the dots that HE was "the Lorem Ipsum guy." You could imagine how invested I was in the course back then. I was too preoccupied with C.S. Lewis and other lofty writings to really care, but I sincerely wish I did.
Anyways, I created this component for React because I just wanted to make a component. It's my first component, and the simplest component to ever exist, literally just a div. And I wanted to share this thought with anyone who comes across it. I've added a personal commonplace book here, in case you're interested in some quotes I loved from "On Obligations."
Cicero. On Obligations. Translated with an introduction and notes by P. G. Walsh. Oxford World Classics. Oxford, UK: Oxford University Press, 2000 (reissued 2008). "The philosopher who claims that the highest good has no connection with virtue, and measures it by his own interests rather than by what is honorable, cannot cultivate friendship, justice, or generosity so long as he remains consistent in his views and is not prevailed upon by his own nature." (p. 4) “We usually ask ourselves not only whether some action is honorable or base, but also, when there are two honorable courses of action, which is the more honorable; and again, if two useful courses lie open to us, which is the more useful.” (p. 6) “In Plato’s words, ‘If wisdom could be seen with the eyes, it would arouse astonishing feelings of love for it.’” (p. 7) “The more clearly a person sees the essential truth of a situation, and the keener and swifter is his ability to grasp and explain its logic, the more prudent and wise he is commonly and justifiably regarded.” (p. 8) “The foundation of justice is good faith, in other words truthfully abiding by our words and agreements.” (p. 10) “Certain obligations must be met even when they are owed to persons who have wronged us, for revenge and punishments have their due limits.” (p. 13)