express-engine-jsx
express-engine-jsx copied to clipboard
Optional props defaults to `null`
How to make the compiler treat all the props as optional and in absense of providing value to the prop, either ignores it or injects null in its place
instead of returning errors
all templates compiles to regular React components. Can show how to change main template to implement what you want?
I prefer to show all props like this
const {
active = false,
disabled = false,
} = props;