Code Monkey home page Code Monkey logo

exercise-lab-component-boilerplate's Introduction

Logo

Learning Goals:

The aim of this exercise is to practice and understand the importance of components.

Steps to follow:

  1. Clone this repository.

  2. On your terminal go inside exercise-lab-components-boilerplate directory and use the following command: npm install.This command install's all the packages to your system that this project is using. Here is a link to get a better understanding of what and how exactly the above command works.

What is npm install

  1. Once everything is ready, you can type npm run dev -> inorder to run the application. You should be able to see a server running and see the output as shown below:

jsx

Task:

By using jsx, we were able to simply our app a little, but again, we can see that, if our application becomes more complicated, then everything being inside index.jsx, will just populate the entire file. What if - there is a bug; how will we find as where exactly that bug is coming from -- if the entire code for our application is inside a sinlge file. So, as our project becomes more complex, keeping our entire code in a single file do not make much sense. So your task is to create a component as App.jsx - and transfer your entire logic to this component. The logic is already provided to you in index.jsx file.

exercise-lab-component-boilerplate's People

Contributors

jatinjayadev avatar kalvium-program 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.