DEV Community

Cover image for My React Base :)
Mateus Valentim
Mateus Valentim

Posted on • Edited on

1 1

My React Base :)

Hi, this is my ReactJS base. Normally, I have to build this from the ground up, but it's really tiring. Repeating everything every time is not cool. So, I created this ReactJS base for myself, and I want to share it with you 🫠.

🚀 How to Use

First, you need to clone the React base using this command:

git clone https://github.com/mattsu014/reactjs-base.git
Enter fullscreen mode Exit fullscreen mode

Next, open your project folder using this command:

cd reactjs-base
Enter fullscreen mode Exit fullscreen mode

Now, you need to install the node_modules using this command:

npm install
Enter fullscreen mode Exit fullscreen mode

And finally, install styled-components:

npm install styled-components
Enter fullscreen mode Exit fullscreen mode

📂 My React Organization

Folder Organization

📄 Pages

The Pages folder is self-explanatory. Here, I put all the code for each page of my website.

React Pages

🛠️ Components

In the Components folder, I put all the "building blocks" for my code, such as Cards, Headers, and others.

React Components

Okay, that's all! This is my simple ReactJS base. You can use your creativity to create more folders and organize your code better.

Thanks for reading 🤗.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay