Giter VIP home page Giter VIP logo

learning-redux's Introduction

Project Banner Image

Vite + React Technigo Boilerplate

Welcome to the react-vite-boiler-plate!

This boilerplate is designed to give you a head start in your React projects, with a focus on understanding the structure and components. As a student of Technigo, you'll find this guide helpful in navigating and utilizing the repository.

Demo

You can check out a Demo of this boilerplate here.

Getting Started

  1. Clone the repository to your local machine.
  2. Install the required dependencies using npm install.
  3. Start the development server using npm run dev.

Navigating the Repository

App Component (src/App.jsx)

The App.jsx is the main component of the application. Here's a breakdown of its structure:

  • Reactive Data: Demonstrates the use of React hooks (useState) to manage state. For instance, there's a counter and a name changer to showcase how reactive data works in React.
  • Static Data: This data is used to populate the content of the app. It includes headings, descriptions, and examples.
  • Component Rendering: Various components from the components folder are rendered here to showcase their usage.

Components (src/components/)

This folder contains multiple React components. Let's dive into each:

  1. Logos (Logos.jsx): Displays the logos of Vite, React, and Technigo. Each logo is linked to its respective official website.

  2. StaticComponent (StaticComponent.jsx): A simple static component with no reactive data or JS logic. It contains an H4 and a paragraph element.

  3. PropComponent (PropComponent.jsx): Demonstrates the use of props in React. It displays a small bio based on the props passed to it. For instance, it can tell if a person likes pineapple pizza or not!

  4. PropComponentPropTypes (PropComponentPropTypes.jsx): Similar to the PropComponent, but with added PropTypes for type checking. It ensures that the component receives the right type of data for its props. If you want to see a PropTypes error, try removing the name prop in the App.jsx file and check the console.

  5. ComponentWithCss (ComponentWithCss/Component.jsx): This component showcases how to organize styles with components. It has its own CSS file (style.css) in the same folder. It also explains why we use className in React instead of class.


Tip: Before you decide to delete all components and start from scratch, we suggest examining them closely to grasp their structure. They can act as a blueprint for your future work.


We hope this guide helps you navigate and make the most out of this boilerplate.

Happy coding, Technigo students!

learning-redux's People

Contributors

pernillasterner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.