Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillaume-gomez/linkedlisttdd


https://github.com/guillaume-gomez/linkedlisttdd

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

### Front end test

The test is splitted in three parts
- creation of a linked list and tool functions to manipulate them
- two react components to display a linked list
- improve the react components style

Some parts of the code *are dirty* on purpose :)

## Part 1:
![schema](./schema.jpeg)

We want you to develop a library to handle linked lists in typescript. Some functions are already written.
You should :
- Write the missing functions
- Make sure every unit test passes

[more info about linked list](https://en.wikipedia.org/wiki/Linked_list)

## Part 2:
Two components are developped to display a linked list in react.
- LinkedListManager.tsx manage the linked list
- and NodeLinkedList.tsx stores the data node


_Linked list is a muted data structure. So obviously, thoses react components are buggy (react don't like mutated data :) )

So again, do not mutate data in react components like in this repository !!

run tests
`./node_modules/jest/bin/jest.js`

transpile code
`npx webpack`