Fallback image if src doesn't exist for image tag - ReactJS
Hey everyone, I have a small list component that I wanted to populate with a custom image based on the entity’s id. Unfortunately, not all entities have an image so…
Read postLet's take a look at what I've broken today
Hey everyone, I have a small list component that I wanted to populate with a custom image based on the entity’s id. Unfortunately, not all entities have an image so…
Read post
Hi everyone, Just a quick post on how to overwrite the styles of a selected tree item using material ui and ReactJS: treeItem: { paddingTop: theme.spacing(1),…
Read postHi everyone, I’ve finally decided to start learning typescript while working on a side project. The plan was to convert the existing project over using the following…
Read postHi everyone, A quick post on how to overlay a number counter on a comment icon with react-fontawesome: This will show up as the following:
Read post
Hi everyone, Just thought I’d share a very simple react-leaflet setup in case it’s able to help anyone. Add the css and javascript for leaflet to public > index.html:…
Read postHey everyone, I ran into the following error after installing react-leaflet and attempting to run an example: Module not found: Can’t resolve ‘leaflet’ in…
Read postHi everyone, I’m currently testing react-geocode but hit a “request denied” error after providing my API key. The solution was pretty simple thankfully – enable the…
Read postHey everyone, UPDATE: In new versions you now need to add a display attribute: display=”inline” I’ve been working with Material-UI and ReactJS and had a bit of an…
Read postHi everyone, I ran into the following error while attempting to add an image to a slate.js editor today: slate.js unable to find dom node for 19 The solution was to…
Read postHi everyone, A quick post on a helper function I came across for generating avatars. This function generates a random color for the specified string: Thanks to…
Read post