جواب سوال :
این تصویر هیچ مشکلی نداره و نحوه استفاده کاملا درسته!
فرض کنید که 4 تا url دارید:
1. /events
2./events/1004
3./events/1004/jan
4./events/1004/jan/max
آدرس اول وارد فایل index میشه ، آدرس دوم وارد فایل [eventId] میشه ، و آدرس سوم و چهارم وارد [slug...] میشه.
-----
اگر این نکات براتون مفید واقع میشه ، ممنون میشم پستها یا آدرس کانال رو به اشتراک بذارید روی لینکدین و اینستا تا جمعمون جمع شه 🙏
@alithecodeguy
این تصویر هیچ مشکلی نداره و نحوه استفاده کاملا درسته!
فرض کنید که 4 تا url دارید:
1. /events
2./events/1004
3./events/1004/jan
4./events/1004/jan/max
آدرس اول وارد فایل index میشه ، آدرس دوم وارد فایل [eventId] میشه ، و آدرس سوم و چهارم وارد [slug...] میشه.
-----
اگر این نکات براتون مفید واقع میشه ، ممنون میشم پستها یا آدرس کانال رو به اشتراک بذارید روی لینکدین و اینستا تا جمعمون جمع شه 🙏
@alithecodeguy
یه چیزی مثل PostMan ولی کاملا آنلاین و از روی مرورگر
(در بعضی موارد قویتر از پستمن)
https://hoppscotch.io/
(در بعضی موارد قویتر از پستمن)
https://hoppscotch.io/
hoppscotch.io
Hoppscotch • Open source API development ecosystem
Helps you create requests faster, saving precious time on development.
این مخزن تمام لینکای مفید برای موضوعات مختلف دنیای برنامه نویسی ، در سطح اینترنت رو دسته بندی کرده!
دمشون گرم. چندتاشو که خودم درگیرشونم چک کردم خوب بود لینکاش.
https://github.com/sindresorhus/awesome
#tip
دمشون گرم. چندتاشو که خودم درگیرشونم چک کردم خوب بود لینکاش.
https://github.com/sindresorhus/awesome
#tip
GitHub
GitHub - sindresorhus/awesome: 😎 Awesome lists about all kinds of interesting topics
😎 Awesome lists about all kinds of interesting topics - sindresorhus/awesome
این مخرن هم کلی template برای gitignore پروژه های مختلف با زبان های برنامه نویسی مختلف رو داخل خودش داره. زخم خوردههاش درک میکنن چی میگم.
https://github.com/github/gitignore
#tip #git
https://github.com/github/gitignore
#tip #git
GitHub
GitHub - github/gitignore: A collection of useful .gitignore templates
A collection of useful .gitignore templates. Contribute to github/gitignore development by creating an account on GitHub.
IMG_1231.JPG
291.4 KB
قطعا میدونید که داینامیک تایپ بودن جاوا اسکریپت تیغ دو لبس. علاوه بر مزیتاش ، جاهایی معایبی هم داره از جمله توی ریکت.
خب حالا چه جوری این داستان رو حل میکنید؟ احتمالا با تایپ اسکریپت.
تایپ اسکریپت فوق العادس و خودش یه زبان حساب میشه. درسته سوپر ستی از جاوا اسکریپته ولی کاملا یه زبان مستقل هستش.
آیا گزینه دیگهای داریم؟ بببله!
عزیز دل ما ، Flow جان!
توسط خود فیس بوک توسعه داده شده و یک زبان مجزا هم نیست.
تایپ اسکریپت خیلی قویتره ولی برای ریکت این فوق العادس.
فرصت کنم مقاله در موردش میذارم.
😍
#ts #flow
خب حالا چه جوری این داستان رو حل میکنید؟ احتمالا با تایپ اسکریپت.
تایپ اسکریپت فوق العادس و خودش یه زبان حساب میشه. درسته سوپر ستی از جاوا اسکریپته ولی کاملا یه زبان مستقل هستش.
آیا گزینه دیگهای داریم؟ بببله!
عزیز دل ما ، Flow جان!
توسط خود فیس بوک توسعه داده شده و یک زبان مجزا هم نیست.
تایپ اسکریپت خیلی قویتره ولی برای ریکت این فوق العادس.
فرصت کنم مقاله در موردش میذارم.
😍
#ts #flow
برای نفراتی که ریکت رو بلدن و میخوان استارت تایپ اسکریپت رو هم بزنن ، این سایت خوبیه :
https://react-typenoscript-cheatsheet.netlify.app/
#ts #tip
https://react-typenoscript-cheatsheet.netlify.app/
#ts #tip
react-typenoscript-cheatsheet.netlify.app
React TypeScript Cheatsheets | React TypeScript Cheatsheets
پست خوبیه.
React Testing Library and Jest both have different responsibilities "react testing library" is not a test runner meaning when u enter command npm test or npm run test it is jest responsibility that collect all the files ending with .test.js and runs each test case and show pass and fail results in your console.
react testing library provides you function to catch dom element and perform some action below are some of its function :
render, fireEvent, waitFor, screen
you can also use Enzyme(another popular testing library) for such function to access dom element
EXTRA: developer often confuse among :
1- jest
2- react-testing-library
3- Enzyme
Here Enzyme and react-testing-library are two similar things and alternatives to each other means you can use :
- enzyme with jest
- react-testing-library with jest
- you can also use all three i.e react-testing-library+Enzyme with jest
https://stackoverflow.com/questions/66341449/testing-library-react-vs-jest
#test #jest
React Testing Library and Jest both have different responsibilities "react testing library" is not a test runner meaning when u enter command npm test or npm run test it is jest responsibility that collect all the files ending with .test.js and runs each test case and show pass and fail results in your console.
react testing library provides you function to catch dom element and perform some action below are some of its function :
render, fireEvent, waitFor, screen
you can also use Enzyme(another popular testing library) for such function to access dom element
EXTRA: developer often confuse among :
1- jest
2- react-testing-library
3- Enzyme
Here Enzyme and react-testing-library are two similar things and alternatives to each other means you can use :
- enzyme with jest
- react-testing-library with jest
- you can also use all three i.e react-testing-library+Enzyme with jest
https://stackoverflow.com/questions/66341449/testing-library-react-vs-jest
#test #jest
منبع همه لینکهای مفید در مورد React در سطح وب :
https://reactresources.com/
چیزی که توی این سایت ، توجه رو جلب میکنه نحوه دسته بندی مطالب هستش.
#react #tip
https://reactresources.com/
چیزی که توی این سایت ، توجه رو جلب میکنه نحوه دسته بندی مطالب هستش.
#react #tip
React Resources
Keep up with the growing React ecosystem! We cover the latest React learning resources, libraries and jobs.