How to fix JSX expression must have one parent element?
https://stackoverflow.com/questions/58477911/how-to-fix-jsx-expression-must-have-one-parent-element
WebOct 20, 2019 · Each item in a flatlist should have a toggle option to open a modal. I get the error: JSX expressions must have one parent element. I have tried to google for the right syntax but can't find a solution. state = {. modalVisible: false, }; setModalVisible(visible) {. this.setState({ modalVisible: visible }); render() {.
DA: 63 PA: 9 MOZ Rank: 18