𝑪𝒓𝒆𝒂𝒕𝒊𝒏𝒈 𝒂 𝑹𝒆𝒂𝒄𝒕 𝒑𝒂𝒄𝒌𝒂𝒈𝒆 𝒔𝒐𝒖𝒏𝒅𝒔 𝒉𝒂𝒓𝒅𝒆𝒓 𝒕𝒉𝒂𝒏 𝒊𝒕 𝒊𝒔… 𝒖𝒏𝒕𝒊𝒍 𝒚𝒐𝒖 𝒐𝒗𝒆𝒓𝒄𝒐𝒎𝒑𝒍𝒊𝒄𝒂𝒕𝒆 𝒊𝒕. A few things that helped me: - Start with one reusable component, not a full library - Use Vite for fast setup - Test it locally with npm link before publishing Simple > perfect. How are you structuring your packages? #reactjs #javascript #webdev #frontend #opensource
Structuring React Packages for Harder Development
More Relevant Posts
-
useEffect runs after every render by default. Here's how to control it: ✅ Run once on mount: useEffect(() => { ... }, []) ✅ Run when a value changes: useEffect(() => { ... }, [value]) ✅ Cleanup on unmount: useEffect(() => { return () => cleanup() }, []) One hook. Three behaviors. Know the difference. 🎯 #ReactJS #Frontend #JavaScript #WebDev
To view or add a comment, sign in
-
Closures are one of those JavaScript concepts that feel confusing at first, but once you understand them, a lot of things start making sense. #javascript #frontend
To view or add a comment, sign in
-
-
🧠 React Hook Lifecycle Quiz Can you predict the output and explain why? 👇 🔹 Phase 1: Initial Mounting - What will be logged on the first render? 🔹 Phase 2: Updating (when clicking incrementCount) - What will be logged after clicking the button? #ReactJS #Frontend #WebDevelopment #JavaScript #ReactHooks #NextJS
To view or add a comment, sign in
-
-
I built the same simple form in two ways: - React Hook Form + MUI → 136 lines - Dashforge → 74 lines Same result. This is a simple case… imagine when it gets complex. Curious to hear how others are handling forms in React. #react #reacthookform #mui #frontend #webdevelopment #javascript #typescript #developerexperience
To view or add a comment, sign in
-
just published part 2 of my React internals series , this one covers what actually happens when you call setState and how does re-rendering works. part 1 (initial render): https://lnkd.in/dycpqavw part 2 (re-render): https://lnkd.in/d4tWTwmk #react #javascript #frontend #webdev
To view or add a comment, sign in
-
Built two practical React features today: • Back to Top • URL Validation Solved on Namaste Dev Platform NamasteDev.com sir Akshay Saini 🚀 Focused on clean logic, reusable components, and real-world usability. Consistent small wins → long-term growth. #ReactJS #Frontend #JavaScript #WebDevelopment #LearningInPublic
To view or add a comment, sign in
-
JavaScript Event Loop The event loop is a system that decides: - What code runs now - What runs later 👉 Sync → Microtasks(Promise.then, async/await) → Macrotasks(setTimeout, setInterval) Example below: A F H C E G D B 🎯 If you understand WHY this happens, you really understand the event loop. #javascript #webdev #frontend #async
To view or add a comment, sign in
-
-
Svelte vs Traditional Frameworks Most frameworks push heavy work to the browser, increasing runtime cost and slowing down performance. Svelte takes a different approach — it shifts that work to compile time, producing highly optimized vanilla JavaScript. The result: faster load times, smoother runtime performance, and minimal browser overhead. Sometimes, the best optimization is doing less in the browser. #Svelte #WebDevelopment #JavaScript #Frontend #WebPerformance #SoftwareEngineering #Ziplink
To view or add a comment, sign in
-
-
You’re using useEffect WRONG ⚠️ Most React developers make this mistake daily. useEffect is NOT for everything. Here’s where most devs go wrong: ❌ Using it for derived state ❌ Using it for simple calculations Instead: ✔ Compute values during render ✔ Keep logic simple Have you made this mistake before? Comment YES if you have 👇 #ReactJS #Frontend #WebDevelopment #JavaScript #CleanCode
To view or add a comment, sign in
-
🚀 💡 JavaScript Tricky Question Explanation const arr = [4, 10, 2, 8]; const result = arr.find(num => num > 5) + arr.findIndex(num => num > 5); console.log(result); 👉 Output: 11 👉 Explanation: * find() returns the first value > 5 → `10` * findIndex() returns its index → `1` * Final result → `10 + 1 = 11` ⚡ Both stop at the **first match** #JavaScript #WebDevelopment #Frontend #CodingInterview #JSConcepts
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development