Professional Documents
Culture Documents
Create a web app with a input text and a button in the middle. and posts below them(posts to be
fetched from https://jsonplaceholder.typicode.com/posts
When the button is clicked the component filters the posts and only shows the posts which have
the contain the search text in the title
Ex. search text is “as”
1. Asfdf adsadas
2. Kjas
3. Opdasda
4. Adasd
5. Trtry yrty afas
6. Hhjgj as grbgvb
var posts=[];
Fetch posts from API
//
//loop on posts
// create a seperate post component to style and display the data of a single post(title and body
both)
<Post>
Points to be noted
1. All posts should be displayed when the component is loaded