Fork me on GitHub
#rum
<
2017-12-05
>
firstclassfunc17:12:12

guys probably been answered before but how do i reset form of controlled components so the internal state is reset?

Niki18:12:09

if components are controlled just reset the model and DOM will follow

Niki18:12:21

or are you talking about uncontrolled @firstclassfunc?

firstclassfunc19:12:27

hey @tonsky When I use cljs-react-material-ui components and I control their state even when I clear the cursor text-boxes persist

Niki20:12:45

I’m sorry to hear that

Niki20:12:34

you use :value right? :value == controlled, :default-value == uncontrolled

sova-soars-the-sora22:12:35

Hi! I keep getting this weird error

sova-soars-the-sora22:12:45

f9.js:3652 Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of tags-tree. See https://fb.me/react-warning-keys for more information.

sova-soars-the-sora23:12:23

How can I make sure my react keys are unique