redaxios
bulletproof-react
redaxios | bulletproof-react | |
---|---|---|
12 | 250 | |
4,526 | 22,776 | |
- | - | |
0.0 | 5.0 | |
9 months ago | 4 days ago | |
JavaScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
redaxios
-
Counter-intuitive web devs mistakes
Once you start to handle all the corner-cases of the fetch, you will find that you don't want to repeat the boilerplate each time you call network, so you will write some wrapper around the fetch or use redaxios library from Jason Miller, which provides axios-like API on top of fetch so it weights only 800 bytes, which is nice. But then you might need the axios interceptors which redaxios do not implement and if your application upload files and you want to track the upload progress with ProgressEvent, the fetch does not support that, only XMLHttpRequest does, on which the original axios is based. And after you write all your custom wrappers around fetch and upload wrappers around XMLHttpRequest, you might reconcider the original statement, that axios library is obsoleted.
-
Safe Data Fetching in Modern JavaScript
If you love Axios, but donāt love that itāll add 11kb to your bundle, Redaxios is a great alternative, that uses the same API as Axios, but in less than 1kb.
-
You might be using `fetch` wrong...
Axios is another great, and very popular, solution for clean data fetching. It is a bit larger (10kb gzip vs 2kb gzip), so if kb size is important to you (I would argue it typically should be) redaxios is a great option too
-
If you know, you know
Then you get redaxios.
- Axios vs Fetch?
-
Modern API data-fetching methods in React
There's a neat library called https://github.com/developit/redaxios that implements almost all the Axios API, but as a wrapper around fetch instead.
-
can't set httponly cookie in nestjs
As for your very last comment, for those who canāt part from axiosā API, try redaxios which is just a super thin wrapper around fetch().
-
How do you go about architecturing large React application?
If you want use fetch but with Axios API, small size(~1KB), I suggest you checkout redaxios from Preact creator.
- [AskJS] dame - 23 KB axios alternative with zero dependencies. What do you think?
- What are some React life pro tips?
bulletproof-react
-
Coding Snippets Dev Log (9/27/23)
Using -> this guide to help structure a project in a better way
-
Best File Structure
bulletproof react
-
Beware of teammates who refactor code based on personal taste without proper documentation or completeness. Sounds familiar.
Well Iād definitely have a file structure in place. I use bullet proof react as my go to. But I mean likeā¦Iād say thereās probably 10 things causing 90% of the problems. So things like folder structure, yes, but also how long the files are, I meanā¦how enmeshed it all isā¦maybe the naming conventions.
-
My React Beginner Project
Follow this: https://github.com/alan2207/bulletproof-react
-
What's the best component / folder architecture for a project to scale?
Your approach is similar to bulletproof-react, which I personally love. I have built projects of all sizes with it and the DX was always nice! Check it out if you want and good luck on your project š
-
Are there any react js best practices websites?
Link for the lazy ones.
-
Inspiration for my first React project
Not sure if this helps, but Bulletproof React is a very good architecture to React projects of any size. Maybe it can give you some insight on how to structure your project. Good luck!
- Software Architecture in React
- Software Architecture in frontend
-
Best practices for organizing projects files in react
Been content with how Bulletproof react does it, only thing missing for me is differentiation between views and components.
What are some alternatives?
react-query - š¤ Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
react-clean-architecture - A realistic approach to implement clean architecture on react codebases
axios - Promise based HTTP client for the browser and node.js
documentation - š° Architectural design methodology for Frontend projects
react-helmet - A document head manager for React
excalidraw - Virtual whiteboard for sketching hand-drawn like diagrams
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
twilio-video-app-react - A collaboration application built with the twilio-video.js SDK and React.js
payload - The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS.
fetch - A Fetch API wrapper
SAAS-Starter-Kit-Pro - šA boilerplate for building Software-as-Service (SAAS) apps with Reactjs, and Nodejs