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
- Host: GitHub
- URL: https://github.com/anupamkhosla/react-family-tree-king-shan
- Owner: AnupamKhosla
- License: mit
- Created: 2023-09-05T08:44:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T04:10:48.000Z (over 1 year ago)
- Last Synced: 2025-01-16T06:58:07.564Z (5 months ago)
- Topics: family-tree, javascript, reactjs, tree-traversal-algorithm
- Language: HTML
- Homepage: https://anupamkhosla.github.io/React-Family-Tree-King-Shan/problem12.html
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.htmlReact-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/geektrustAnother solution based on javascript Node Js with better testing and structure:
- https://github.com/UJPrasad/GeekTrust-FamilyProblemI 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