This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Description
I would like to control the connection using a state value. Can you please add a Boolean property "connect" to the Connector which will indicate if to perform a connection or not.
This will support:
`
const [connect, setConnet) = useState(false);
return (
<Connector connect={connect}
{children components here that will optionally require mqtt}
</Connector
)
`