josnin / josnin/redgin

Should be able to customize the name, type for prop attrs reflection

Open
#2 1 comment 0 reactions 1 assignee Claimed by @josnin View on GitHub
idea
Dominant language
TypeScript
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

If not define, props will be dynamically created and type will be calculated based on the return JSON parse value

kebab attrs will automatically convert to CamelCase for props naming

How to customize? see below
```js
foo = propReflect(false, {
attr: 'is-display',
type: Boolean }
)

```

IF type is not provided, then it will try to JSON parse
```js
foo = propReflect(false, { attr: 'is-display' } )
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.