📒 Create a React Notes App with Local Storage | Full Tutorial 🚀

Sdílet
Vložit
  • čas přidán 23. 08. 2024
  • Welcome to my channel! 🎉 In this tutorial, I'll guide you through building a powerful and user-friendly Notes App using React and Local Storage. Whether you're a beginner or an experienced developer, this step-by-step guide will help you understand the core concepts of React and how to leverage Local Storage for persistent data management.
    🔹 What You'll Learn:
    🚀 Setting up a React project
    🛠️ Creating components for the notes app
    📌 Managing state with hooks
    ✏️ Implementing CRUD operations (Create, Read, Delete)
    💾 Using Local Storage to save and retrieve notes
    🎨 Styling the app
    Don't forget to like, comment, and subscribe for more tutorials! 👍🛎️
    ====================================================
    /* src/App.css */
    body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    }
    .app {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 100%;
    text-align: center;
    }
    .app h1 {
    margin-bottom: 20px;
    color: #333;
    }
    .notes-list {
    margin-top: 20px;
    }
    .note {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    }
    .note p {
    margin: 0;
    flex: 1;
    text-align: left;
    }
    .note button {
    background-color: #ff4d4d;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    }
    .note button:hover {
    background-color: #ff1a1a;
    }
    input[type="text"] {
    width: calc(100% - 110px);
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    }
    input[type="text"]:focus {
    border-color: #888;
    outline: none;
    }
    button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    }
    button:hover {
    background-color: #45a049;
    }
    ===============================================
    #react #notesapp #localstorage #webdevelopment #codingtutorial #reacttutorial #javascript #programming #frontenddevelopment #webapp #learnreact #codewithme #devcommunity #techtutorial #appdevelopment #developerlife #programmingtutorial #reactjs #javascripttutorial #frontenddevelopment #codenewbie #techlearning #womenintech #codinglife #reacthooks #reactcomponents #webdeveloper #selftaughtdeveloper #fullstackdevelopment #techskills #reactproject #BuildWithReact #devtips #codechallenge

Komentáře •