Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
drfrf
Advanced tools
Readme
Django REST framework - redux-form connector
$ yarn add drfrf
Compose the drfrf
higher-order component with reduxForm
:
import drfrf from "drfrf"
import { connect } from "react-redux"
import { compose } from "recompose"
const App = props => <form>...</form>
export default compose(
drfrf({
endpoint: "http://example.com/api/items/validate/",
}),
reduxForm({ ... })
)(App)
To-daa! Your form automatically queries the specified endpoint with every onChange and displays errors from the backend! 🎉
Browse the complete example here: https://github.com/Theodo-UK/drfrf/tree/master/example/frontend/src
drfrf
exposes a single HOC which sets the asyncValidate
prop for redux-form to use.
This HOC accepts a configuration object with the following properties:
name | default | description |
---|---|---|
endpoint | none | URL to call with every change |
method | "POST" | HTTP method to use |
If you're using Django in your backend, check out drfrf for the backend.
FAQs
Django REST framework - redux-form connector
The npm package drfrf receives a total of 6 weekly downloads. As such, drfrf popularity was classified as not popular.
We found that drfrf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.