Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.props.map, isEmpty, isEqual #5

Open
4LS opened this issue Feb 22, 2019 · 2 comments
Open

this.props.map, isEmpty, isEqual #5

4LS opened this issue Feb 22, 2019 · 2 comments

Comments

@4LS
Copy link

4LS commented Feb 22, 2019

Hi!
Great library! I'd like to contribute to your library but I have a problem with grasping some concepts behind this design.

  1. How does component have access to map in props if it is not explicitly stated? Is it enough that wraps all components and that's it?
  2. What are isEmpty and isEqual functions exported from /utils? Here I have no idea as I don't see any such named function or export to utils.
@hentrymartin
Copy link
Owner

@4LS Thanks for the interest.

  1. map is passed as a prop to each child in /src/HereMap/index.js, so it will be accessible to all the child components.
  2. isEmpty and isEqual are utils function which are used to find whether an object is empty or is two object/array are equal. These functions are exported from src/Utils/index.js.

I believe this answers your question.

Thanks.

@4LS
Copy link
Author

4LS commented Feb 22, 2019

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants