Testing whether we are getting author commit email address on commiting
- Create such component
- Should be able to render interface if some form of data is given
- User should be able to edit name of a field Original
New - Person field got deleted
- Assume a Schema for this, how you will represent this data. Write that down.
Schema for the above interface - Follows recursion as you can see that the nested rows have items[]
- Write down how you will handle this, what components you will create.
C - represents the component that I have divided into
To understand the component structure better, I have marked which components refers to which in the code. C1 - C1 - row like this for every other component
4. Start small. Create a component which can render this data.
First I started with creating all the components, then combining it together with the help of the redux
-
Add editable input field and update the data
I used redux to manage the state of the app, and use the reducers to change the state of the row
-
Add a way to add more rows
To add more rows, first we have have to know the parentIndex where we have to add the child, we find the parentIndex by recursion. After we know the index, we just have to push the child/nested Row in the parent items[].
-
Add a way to delete rows
To delete the row, we need to find the ID of the row which we have to delete in the tree, which can be easily done through recursion
-
Add a way to update the data in the rows
To update the data, we find need to find the ID of the row to which we want to perform the update which can be easily done through recursion, then the data is updated with the help of the reducers