在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:arqex/react-json开源软件地址:https://github.com/arqex/react-json开源编程语言:JavaScript 93.2%开源软件介绍:react-jsonA JSON editor packed as a React.js component, but also the simplest way of creating web forms. Play safe with react-json forms in the playground. React-json is like having an special input type for JSON objects, developers only need to listen to changes in the JSON instead of writing all the boilerplate needed to handle every single input of the form. It comes with top features:
ExamplesDo you want to edit some JSON in your app? Pass it to the Json component: var doc = {
hola: "amigo",
array: [1,2,3]
};
React.render(
<Json value={ doc } onChange={ logChange } />,
document.body
);
function logChange( value ){
console.log( value );
} A simple form creatorDo you hate creating forms? React-json handles all the dirty markup for you, and makes you focus in what is important; var doc = {
user: "",
password: ""
};
// form: true
// make objects not extensible,
// fields not removable
// and inputs always visible
var settings = {
form: true,
fields: { password: {type: 'password'} }
};
React.render(
<Json value={ doc } settings={ settings }/>,
document.body
); DocsReact JSON is highly configurable, have a look at the docs to discover how. MIT licensed |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论