Set Up A React Project With Parcel: The Zero Configuration App Bundler ― Scotch

  • One other thing to note about Parcel is that it allows developers to use an index.html file as an entry point as opposed to JS modules.
  • One of the many cool things about Parcel is that, it comes with a development server built in which will automatically rebuild your app as you change files and supports hot module replacement for fast development.
  • “scripts”: { – “start”: “parcel index.html” – }, – This means that, whenever we run the npm start command, we are telling Parcel to start a development server using the index.html file as a entry file.
  • Building for Production – To prepare your app for production with Parcel, all you need to do is run the command parcel build …. Let’s add that to the scripts object in the package.json file.
  • Change output directory – If you’d prefer another directory for Parcel to put the production files in (dist is the default directory), you can specify that by appending –out-dir directory-name at the end of the build key in package.json so it looks like this: – “scripts”: { – “start”: “parcel…

When it comes to web application bundling, there’s a new kid on the block and that’s Parcel. ParcelJS is a relatively new bundler that was launched sometime around October, last year. Parcel describes itself as a blazing fast, zero-configuration web application bundler.
Continue reading “Set Up A React Project With Parcel: The Zero Configuration App Bundler ― Scotch”

4 Key Concepts to Learning ReactJS

4 Key Concepts to Learning #ReactJS  #React #javascript #webdevelopment #coding

  • Aptly named Create-React-App, the tool scaffolds the file structure for your React app and includes a dev server, as well as a compiler, bundler, and more.
  • With so much to learn already in this library, not having to worry about your boilerplate code is a giant relief and the file structure that the CLI tool provides on install will give you everything you need to dive into creating your Dream App™.
  • They allow you to take methods, variables, and even state objects (another ReactJS feature) and pass them around to different parts of your application as PROPerties.
  • Most web apps use one database to store application state and best practice indicates that React state is treated much the same.
  • PropTypes are a way for you to tell your application what type of data your component should expect to be passed to it.

At Modus Create, our culture is defined by a few key objectives, including the value we place on constant learning and sharing of knowledge. It’s no surprise that when I’m not writing automation tests for a client, I am working on personal projects. With most development projects, there comes a time to decide what tools you want to build your UI with. For my latest project, I decided I wanted to use the React library. The only problem was…I didn’t know React — so I decided to see how far I could get using the resources at my disposal.
Continue reading “4 Key Concepts to Learning ReactJS”

Easily Build Forms in React Native – React Native Development – Medium

How to Easily Build Forms in React Native:

  • It makes creating forms in React Native easy by simply having to define a model for that form and you’re set!
  • Snack will automatically pull that in for us.Tip: I find that scanning the QR code from the Expo app on my device gives the best development experience.If you prefer to do this outside of Snack make sure you install tcomb-form-native via npm or yarn.What We’re BuildingWe’ll be building a sign up…
  • First we need to get the Form component (line 6) then we need to render the form and pass our model to it as the type (line 19).
  • We create an object, add a key named “fields” (since we’re modifying the fields), add a key to this object that aligns with the key in our model (“terms”), and then inside that object we set the new label.Code is easier to understand.Then pass those options to the Form componentLet’s…
  • Just about everything in the default form is customizable.As you can see tcomb-form-native makes building forms quick and easy but also gives you the flexibility you need to create forms the give users the necessary info and fit with the rest of your app (unless I’m designing of course).

If you’re building a React Native app it’s almost a guarantee that you’ll have to build at least one form. The reality is you’ll probably build quite a few (sign in, sign up, edit profile, etc.) Yeah…
Continue reading “Easily Build Forms in React Native – React Native Development – Medium”

Useful React Native NPM Scripts — Komenco Blog — Medium

  • The fresh-start script run the fresh-install and starts a clean-cached React Native packager.
  • I use these in all of my React Native projects and it really helps when things start getting weary (random failing builds, issues on library imports, and so on).
  • Feel free to use these scripts as I’m sure they can help speed up your React Native development as well.
  • Useful React Native NPM Scripts
  • Because of that, I’ve created a set of NPM scripts that have helped kickstart my React Native projects.

Read the full article, click here.

@SGoresht: “Useful #Reactjs #reactNative @NPM Scripts — #JavaScript”

Coming from a web development background, React Native can seem like a Holy Grail of sorts. The sheer ability to use Javascript (and React…

Useful React Native NPM Scripts — Komenco Blog — Medium