
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
mkhancha_myforms
Advanced tools
Made with create-react-library
npm install --save mkhancha_myforms
yarn add mkhancha_myforms
import React from 'react';
import MyForm from 'myforms';
const config = [
{
widget: 'input',
name: 'title',
label: 'Title',
helperText: 'Fill in the title',
variant: 'outlined',
defaultValue: '',
type: 'text',
start: null,
end: null,
grid: 12
},
{
widget: 'textarea',
name: 'description',
label: 'Description',
helperText: '',
variant: 'outlined',
type: 'text',
defaultValue: '',
start: null,
end: null,
grid: 12
},
{
widget: 'singleCategories',
name: 'technologies',
label: 'Technologies',
multiple: true,
grid: 12,
defaultValue: [],
options: [
'PHP',
'ASP.NET',
'Python',
'Coldfusion',
'Node JS',
'React JS',
'Angular JS',
'Mysql',
'Parseserver',
'Firebase'
]
},
{
widget: 'uploads',
name: 'files',
label: 'Upload Files',
multiple: true,
grid: 12,
defaultValue: []
},
{
widget: 'checkbox',
name: 'featured',
defaultValue: false,
label:
'Featured, make this post featured ($30 will be charged to make post featured).',
grid: 12
}
];
const userId = 'a123';
const sessionId = 'b456';
const baseURL = 'http://localhost:8080';
const App = () => {
const [formValues, setFormValues] = React.useState(
config.reduce((acc, cur) => {
if (cur.hide) return acc;
acc[cur.name] = cur.defaultValue;
return acc;
}, {})
);
const [images, setImages] = React.useState([]);
const [errors] = React.useState({});
const [disableds] = React.useState({});
const handleChange = (name, value) => {
setFormValues((fV) => {
return { ...fV, [name]: value };
});
};
console.log('formValues: ', formValues);
console.log('images: ', images);
console.log('errors: ', errors);
console.log('disableds: ', disableds);
return (
<div>
<h1>Form Example</h1>
<MyForm
config={config}
reference='Exampl1'
values={formValues}
errors={errors}
disableds={disableds}
handleChange={handleChange}
images={images}
setImages={setImages}
userId={userId}
sessionId={sessionId}
baseURL={baseURL}
/>
</div>
);
};
export default App;
MIT © manishkhanchandani
FAQs
My Forms Library
The npm package mkhancha_myforms receives a total of 11 weekly downloads. As such, mkhancha_myforms popularity was classified as not popular.
We found that mkhancha_myforms 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
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.