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

https://github.com/anupamkhosla/react-family-tree-king-shan

Tree traversal in React Js to work on family tree
https://github.com/anupamkhosla/react-family-tree-king-shan

family-tree javascript reactjs tree-traversal-algorithm

Last synced: 3 months ago
JSON representation

Tree traversal in React Js to work on family tree

Awesome Lists containing this project

README

        

# React-Family-Tree-King-Shan
## Tree traversal in React Js to work on family tree
### Demo: https://anupamkhosla.github.io/React-Family-Tree-King-Shan/problem12.html

React-Family-Tree-King-Shan
Tree traversal in React Js to work on family tree of King Shan
Please note that this task is solved online on github in c++ and java language:
- https://github.com/bhupankarg/KingShanFamilyTree/blob/master/Geektrust-Problems1.pdf
- https://github.com/deeksharastogi/geektrust

Another solution based on javascript Node Js with better testing and structure:
- https://github.com/UJPrasad/GeekTrust-FamilyProblem

I have solved the task in ReactJs, which uses completely original code and logic. I have intentionally used only one html file which has all the js code, for the sake of simplicity. I could have taken out the family tree json data in a separate file and also could have taken "findXYZ"(e.g. findFather) functions in a separate file.

On a production level, I would have used Next.js with json file as actual live database, or for a front end app create react app. Those apprpoaches would need the examiner to install node and npm etc. With single html file using react cdns, I have made it easier for non technical guys to run and test the code.

Anupam khosla 30 August 2023