CodeQuestic / OpenPrep

Comprehensive collection of resources for various programming languages. It includes code samples, best practices, and reference materials to help developers of all levels enhance their skills and knowledge in multiple languages.
https://openprep.pages.dev
MIT License
4 stars 7 forks source link

Added content for component lifecycle method in component-lifecycle.mdx #23

Closed TechGeekRahul closed 4 weeks ago

TechGeekRahul commented 1 month ago

📑 Description

[docs](React Component lifecycle): This PR adds a new section under the React documentation covering Component Lifecycle methods. It explains the lifecycle methods in class components (componentDidMount, componentDidUpdate, and componentWillUnmount) and provides a detailed comparison with functional components using the useEffect hook. The content includes code examples, best practices, and guidelines for handling side effects and cleanups in both class-based and functional components.

✅ Checklist

🔗 Related Issue(s)

Closes #19

🚀 Types of changes

<! [x] Documentation update (docs for this project)

rakshixh commented 1 month ago

Hey @TechGeekRahul did you go through the website for all the required things such as naming conventions etc? Unless those things are followed PR won't be merged, Please follow naming conventions and other contribution guidelines.

TechGeekRahul commented 1 month ago

yes I have went through the website and followed each of the given steps and contribution guidelines.

rakshixh commented 1 month ago

@TechGeekRahul Did you even run the project locally? I think you didn't. I can see the basic mistakes in your file; it is because there is an error. Please take time to go through the code base and do your research regarding the usage of mdx etc. Please use Astro starlight components such as tab, code etc to present the contents visually not in the md format.

Please note that everything will be reviewed.

rakshixh commented 1 month ago

yes I have went through the website and followed each of the given steps and contribution guidelines.

Did you go through the naming conventions? Please check the name of your pull request it is not as per the guidelines.

TechGeekRahul commented 1 month ago

okay I will do that thanks for highlighting.

rakshixh commented 1 month ago

Hey @TechGeekRahul , When can we expect an updated PR? Please provide an update on your work so far.