DEV Community

Question: How to style data in Firebase

Alex on March 22, 2019

Hello!! So right now, a user's input is sent to the database and gets displayed on a refresh. What I want to do is give users the option to bold th...
Collapse
 
uddeshjain profile image
Uddesh

One way to do that is you can store users choice in firebase like

isBold: true or false.

So when you display the data just put a condition like if isBold is true then display bold otherwise display normal text.

Collapse
 
supremerumham profile image
Alex

okay thank you!!