Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

m3ter-com/react-coding-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Coding Challenge

This project uses Redux and Redux Toolkit

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

TODO

The skeleton app uses test data but should use real data from https://jsonplaceholder.typicode.com/posts. The store is already configured and has a posts slice. It uses Redux Toolkit, which includes Redux Thunk middleware, so createAsyncThunk can be used to create an action that loads the data. It should be dispatched when the Posts component mounts. When loading the isLoading state should be set to true then reset to false when the request succeeds.

You can load the data any way you like, for example using the fetch API or a library like Axios.

The skeleton app uses React Router for displaying the relevant component for the current URL and linking between the posts list and the post page.

There are also other TODOs dotted around the code that need sorting.

About

React interview coding challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors