Skip to content

rajrajhans/tweet-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component to display a Tweet

This is a basic React Component to display a tweet. It is intended as a beginner project in learning ReactJS. To know more about the development process and what I learned in this project, please see this supplementary blog post

Here is an example of the component displaying a tweet -

screenshot

Blog Post

To know more about this project, please read the blog post accompanying it - Getting up and running with ReactJS.

Enhancement

The component shows only one tweet. We can use array.map() to display a list of tweets. This is implemented in the using-array.map branch.

Running the project

This project was bootstrapped with Create React App.

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!