Skip to content

React Assignment 2 of Saylani Welfare Mass IT Training Program Batch #5 (Weekend)

Notifications You must be signed in to change notification settings

MYousufSoomro/React-Assignment-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Assignment 2

Q1) Render these into component:

const name = "Hello World";
const obj = {name: "Hello World Object"}
const data = ['We', 'are', 'United'] //Show these in seperate tags
const list = [{name: "Hello World 1"}, {name: "Hello World 2"}, {name: "Hello World 3"}] //Show these in seperate tags
const complex = [{company: 'XYZ', jobs: ['Javascript,' 'React']}, {company: 'ABC', jobs: ['AngularJs' 'Ionic']}]

Q2) Just copy and paste the data from these links and store them into a variable:

const posts = https://jsonplaceholder.typicode.com/posts //copy the array from this link
const users = https://jsonplaceholder.typicode.com/users //copy the array from this link

//DON'T USE FETCH FOR NOW

Using above API's, you've to render all the users with their names, emails and their posts. Use id as a key with each data rendering.

About

React Assignment 2 of Saylani Welfare Mass IT Training Program Batch #5 (Weekend)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published