Last active
May 26, 2020 01:51
-
-
Save caasi/02ac338f05e58a2ca8293eff2791e13a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC } from 'react'; | |
import * as Inter from 'interaction'; | |
export default const Foo: FC<Inter.ListProps<[string, number, string]>> = ({ value, onChange }) => { | |
return ( | |
<Inter.List value={value} onChange={onChange}> | |
<Inter.Text /> | |
<p>foobar</p> | |
<Inter.Number /> | |
<Inter.Text /> | |
<div>lol</div> | |
</Inter.List> | |
); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC } from 'react'; | |
import * as Inter from 'interaction'; | |
export default const Foo: FC<Inter.MapProps<{ foo: string, bar: number }>> = ({ value, onChange }) => { | |
return ( | |
<Inter.Map value={value} onChange={onChange}> | |
<Inter.Number name="bar" /> | |
<Inter.Text name="foo" /> | |
</Inter.Map> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment