This project forked from https://codepen.io/ScottWindon/pen/RwrXLJR
Source Code: https://github.com/bxb100/react-tailwind-chart
If you are undertaking a mobile app development for your start-up or enterprise, you are likely wondering whether to use React Native. As a popular development framework, React Native helps you to develop near-native mobile apps. However, you are probably also wondering how close you can get to a native app by using React Native. How native is React Native?
In the article, we discuss the similarities between native mobile development and development using React Native. We also touch upon where they differ and how to bridge the gaps. Read on.
Let’s briefly set the context first. We will briefly touch upon what React Native is and how it differs from earlier hybrid frameworks.
Although relatively new, React Native has acquired a high degree of popularity. The “Stack Overflow Developer Survey 2019” report identifies it as the 8th most loved framework. Facebook, Walmart, and Bloomberg are some of the top companies that use React Native.
The popularity of React Native comes from its advantages. Some of its advantages are as follows:
Are you wondering whether React Native is just another of those hybrid frameworks like Ionic or Cordova? It’s not! React Native is fundamentally different from these earlier hybrid frameworks.
React Native is very close to native. Consider the following aspects as described on the React Native website:
Due to these factors, React Native offers many more advantages compared to those earlier hybrid frameworks. We now review them.
#android app #frontend #ios app #mobile app development #benefits of react native #is react native good for mobile app development #native vs #pros and cons of react native #react mobile development #react native development #react native experience #react native framework #react native ios vs android #react native pros and cons #react native vs android #react native vs native #react native vs native performance #react vs native #why react native #why use react native
Tailwind CSS is an open-source utility-first CSS framework. It redefines the way you style applications by providing a variety of CSS classes.
Using Tailwind CSS, you can style your applications without a single custom class name or a stylesheet.
Furthermore, I found that it works exceptionally well with mobile applications based on React Native.
So, in this article, I’m going to discuss why Tailwind CSS is the best solution for React Native applications.
Hi! Super excited for this video. Cube CSS has completely changed the way I look at CSS. In this video we are building a dashboard using Cube CSS and React. I hope you enjoy.
0:00 - Intro
2:50 - The App
4:27 - Global CSS
5:53 - Theme Utilities
8:45 - Composition Style Utilities
13:36 - Shared Blocks/Exception
16:26 - Custom Blocks
#css #react #cube css #cube css and react
It’s time to start adding some appointments. So, I’ve prepared a bit of data here for you, you can get it from the following gist:
and grab this and work with it. So, I’m going to go and select all this and I’m going to place it in this source folder. So, if I insert a file here, I’m going to call it data. JSON and I paste all of my JSON code in there.
Then we can easily import that into App.JS just by adding an import statement. And when we import it, we want it to have a variable name. So, that will be appointmentList. And it’s going to be imported from data.JSON. So, it’s in the same folder as the current file.
So, I’m going to save that. And then, once we have this information, then we can go ahead and add our list of items. So, we’re going to create an unordered list. And this unordered list, I’m going to add for Tailwind CSS So, this is going to have a class name and it’s going to say, divide, because I want dividers in between the different items vertically. And that you can specify the color, so I’ll do gray 200 here, right.
Looks like I’m importing a new icon in here as well. So, I’ll make sure that I import it from react-icon library. And save the file, you can see that all those snippets are repeated with that bar in between, or you can see the divider is in between but right now it’s not showing you any of the sort of individual data for each item.
#react #web-development #tailwind-css #css #programming
So it’s time for us to create another component. I’d like to create a component that has the information for the dropdown when we click the blue button in our app.
Now I could do that in a separate file like we’ve done with the Search.js component but it’s really a component that’s not going to be used anywhere else and it’s really part of this search function. I could optionally just create some additional code in the search component.
But this is going to be so much code that I like to put it in a separate component by itself. So I’m going to create a const here and I’ll call this drop down and I’ll use the same function notation with arrow functions.
And then we’re going to need a return statement with some additional JSX. that is given below for you.
Notice that I’m using an icon named biCheck here so I need to make sure that I call that. And I need to make sure that I call this dropdown right underneath this button.
Cool now I get the code for the dropdown and I have all these little check boxes that I’ll be programming later on. Now to me it makes sense to keep things together that belong together and not put everything in a separate file otherwise we’ll just be making sub-components and have to dig through them all over your file structure.