
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@daduncan/smart-submit-button
Advanced tools
A smart, reusable React button component for form submissions — seamlessly connected to a DADCMS content management platform where developers can view and manage incoming messages from their users.
A smart, reusable React button component for form submissions — seamlessly connected to a DADCMS content management platform where developers can view and manage incoming messages from their users.
@daduncan/smart-submit-button
is a React component designed for developers who want a plug-and-play solution for collecting user data (like name, email, message, etc.) and managing it through a centralized platform.
Once registered on the DADCMS platform, developers receive a public key which they pass to the button via props. Submitted data is securely routed to their dashboard, where they can view their users messages — without building a backend.
Install via npm:
npm install @daduncan/smart-submit-button
or
yarn add @daduncan/smart-submit-button
How It Works
Register on the DADCMS content management platform. temporary link(https://dadcms.netlify.app)
Receive your public key.
Install the button in your React project.
Pass user data and your public key via props.
View submissions in your platform dashboard.
Usage
jsx
import React from 'react'
import {SmartSubmitButton} from '@daduncan/smart-submit-button'
const App = () => {
const componentProps = {
data: {
name: 'David',
email: "yourmail@gmail.com",
subject:"subject",
message: "your message",
},
publicKey: 'your-api-key',
buttonText: 'your button text',
onError : ()=> alert('there was an error'),
onSuccess: ()=> alert('submitted successfully'),
}
return (
<div >
<SmartSubmitButton {...componentProps} />
</div>
)
}
🔐 Secure submission using your public key
📤 Sends data directly to dadcms platform
🧩 Easy to integrate into any React form
🧠 No backend setup required
FAQs
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.