Skip to content

Spinner changes#45

Open
sumateja wants to merge 1 commit into
NehemiahK:masterfrom
sumateja:master
Open

Spinner changes#45
sumateja wants to merge 1 commit into
NehemiahK:masterfrom
sumateja:master

Conversation

@sumateja

@sumateja sumateja commented Jul 4, 2020

Copy link
Copy Markdown

Added Spinner code changes again by taking a new fork

@sumateja

sumateja commented Jul 4, 2020

Copy link
Copy Markdown
Author

Please approve my Pull request

@madhuni madhuni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have provided a couple of comments. Also, your code is not properly formatted. Please run the prettier script before you push the commit to the remote branch.

}


const Spinner=(props)=>{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please de-structure your props for better code readability. e.g.
const Spinner = ({type, children}) => {}

Comment thread src/demos/SpinnerDemo.jsx
setMarkdown(text)
})

})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we not adding anything in the dependencies array? Not providing that in useEffect will lead to serious issues of memory leaks and can cause the performance.

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

Successfully merging this pull request may close these issues.

2 participants