![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@beisen/area-selector
Advanced tools
cnpm install 或 npm install cnpm使用教程
npm run dev (开发环境打包 port:8080)
npm run test (测试用例)
npm run build (生产环境打包)
{
data: AreaData,
isSingleSelect: false, //单多选
totalCount: 99, // 可选总数
allLevelDisplay:true, //是否显示所有级别,默认true
allowContainsChildren: true, // 选中父级默认选中子集,且子集无法取消勾选,仅在多选状态下生效
hiddenTip:false, //ToolTip的hidden字段,默认false
sideTip:false, //ToolTip的side字段,默认false
defaultResults: [ // 默认选中
{
name: '全国',
id: 1
},
{
id: 3702,
name: '青岛市'
}
],
sureClick: function (data) {
console.log(data);
},
cancelClick: function () {
console.log(11)
}
}
1.安装npm组件包
npm install @beisen/area-selector --save-dev
2.引用组件
import AreaSelect from "@beisen/area-selector"
传入参数
该参数为上述参数,传入方式使用: {...参数}
class Demo extends Component{
render () {
const _data = {
data: AreaData,
isSingleSelect: false,
totalCount: 99,
defaultResults: [
{
name: '全国',
id: 1
},
{
id: 3702,
name: '青岛市'
}
],
sureClick: function (data) {
console.log(data);
},
cancelClick: function () {
console.log(11)
}
}
return (
<div>
<App {..._data}/>
</div>
)
}
} render(, document.getElementById('content')) ```
FAQs
area-selector
The npm package @beisen/area-selector receives a total of 88 weekly downloads. As such, @beisen/area-selector popularity was classified as not popular.
We found that @beisen/area-selector 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.