Coder Social home page Coder Social logo

lab-react-jsx-boilerplate's Introduction

Logo-nav

Kalvium Lab

Learning Goals

In this exercise, the goal is to understand and experiment around JSX - using both class and functional components.

Getting started

  1. Fork this repo
  2. Clone this repo

Whenever you create a first significant change, you should make your first commit.

  1. Follow these guidelines to add, commit and push changes.

In the end of this document, you will find guidelines on how to submit the exercise.

Introduction

The task is to create a webpage which looks like the image below:

Steps to follow:

  1. Clone this repository.

  2. On your terminal go inside lab-react-jsx-boilerplate directory and use the following command: npm install This command install's all the packages to your system that this project is using.

  3. Few lines of code is already written for you -- in the following files:

    1. App.jsx : In this file, you need to complete the task by using functional component. In this file, imageData is a function which stores the an array of objects -> which contains two fields: id and image. NOTE note how images are being imported. Your task is to complete the App function - and get an output as shown in the above image.

    2. AppClass.jsx: Before doing anything --> go to index.jsx file and check which component is being rendered. For now, <App/> is being rendered, we need to change this to <AppClass/>. Import this component and render AppClass, so that any changes made in AppClass file, are displayed on the web now. Similar to 1st case, imageData is defined for you, you just need to complete the class component AppClass - and get an output as shown in the above image.

  4. Once you are able to display the images on the browser, then you can style it in App.css file. If you observe, in both the files, App.css is the only style sheet which is being imported, so any styles added to this file, will be reflected for both the cases.

Happy Coding Kalvium ❤️!

lab-react-jsx-boilerplate's People

Contributors

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